Create dither
create_ditherApply retro dither effects (Bayer, checker, noise, error-diffusion) to images, quantizing to custom palette colors with live-tweakable controls.
Instructions
Build a retro dither effect: ordered Bayer (2×2/4×4/8×8), checker, noise, or single-pass error-diffusion — quantising to a 2/4/16-colour palette. Supports mono, duotone (Game-Boy-green default), or RGB quantisation mode. Creates a new baseCOMP under parent_path holding the source (or a self-contained noise source), a GLSL TOP with an inline shader, and a Null output. Exposes Mix, Threshold, and Scale knobs for live tweaking. Returns a summary, node paths, exposed controls, and an inline preview image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Base name for the created container. | dither |
| parent_path | No | Parent COMP path the dither container is created inside. | /project1 |
| source | No | Absolute path of an existing TOP to dither (e.g. '/project1/movie1'). Pulled in via a Select TOP. If omitted, a self-contained animated colour-noise source is used (no device permissions). | |
| pattern | No | Threshold pattern. bayer2/4/8: ordered Bayer matrices (2×2/4×4/8×8); checker: alternating grid; noise: pseudo-random hash; error_diffusion: single-pass 3×3 neighbourhood approximation. | bayer4 |
| bits | No | Bit depth per channel: 1=2 levels, 2=4 levels, 4=16 levels. | 1 |
| palette_mode | No | mono: luminance → low/high colour. duotone: same with hue tint. rgb: quantise each channel independently using bits. | duotone |
| low_color | No | Off/dark palette colour [r,g,b] 0–1. Used in mono and duotone modes. | |
| high_color | No | On/light palette colour [r,g,b] 0–1. Game-Boy-green default. | |
| threshold | No | Threshold bias applied on top of the pattern. | |
| scale | No | Pattern scale in pixels — larger = chunkier dither. | |
| mix | No | Blend between original (0) and dithered output (1). Live-tweakable. | |
| resolution | No | Output resolution [width, height] in pixels. |