Create halftone
create_halftoneApply print-style halftone, CMYK, dithering, or posterization effects to images or generated noise in TouchDesigner, with adjustable dot size, angle, and blend controls.
Instructions
Build a print/comic print-look effect: halftone dots, CMYK colour separation, ordered dithering, or posterized stepped colour — classic retro aesthetics in one GLSL pass. Creates a new baseCOMP under parent_path holding the source (or a self-contained noise source), a GLSL TOP with an inline shader implementing the chosen style, and a Null output. With source it stylises an existing TOP (pulled in via a Select TOP); without it uses a self-contained animated colour-noise source (no device permissions). Exposes Mix (blend original vs stylised), DotSize, and Angle knobs. Returns a summary plus a JSON block with the container path, created node paths, the output path, exposed controls, any node errors, warnings, and an inline preview image.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_halftone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mix | No | Blend between the original image (0) and the fully stylised output (1). Exposed as a knob for live tweaking. | |
| name | No | Base name for the created container. | halftone |
| angle | No | Screen angle in degrees for the dot grid ('dots'/'cmyk'). Classic print uses 15–45°. | |
| style | No | Print look to apply. dots: monochrome halftone dot grid; cmyk: 4-colour print separation with staggered screen angles; dither: 4×4 Bayer ordered dithering; posterize: stepped colour + luminance outline. | dots |
| source | No | Absolute path of an existing TOP to stylise (e.g. '/project1/render1'). Pulled in via a Select TOP. If omitted, a self-contained animated colour-noise source is used (no device permissions). | |
| dot_size | No | Halftone cell size in pixels — sets the dot spacing for 'dots' and 'cmyk' styles. Larger = coarser, more visible dots. | |
| resolution | No | Output resolution [width, height] in pixels. | |
| parent_path | No | Parent COMP path the halftone container is created inside. | /project1 |