Create pixel sort
create_pixel_sortSorts pixels by luminance, hue, or saturation within threshold regions to create glitch-art horizontal or vertical streaks. Adjustable mix, iterations, and direction for live tweaking.
Instructions
Build a glitch-art pixel-sort effect that sorts pixels along rows or columns within luminance-thresholded regions, creating the signature Kim Asendorf–style horizontal/vertical streak aesthetic. Uses a multi-pass odd-even transposition sort over a glslTOP feedback chain. Sort key: luminance, hue, or saturation. Exposes Mix, Threshold, Iterations, Direction, and Reset for live tweaking. Defaults to a self-contained noiseTOP source when no input TOP is provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Base name for the created baseCOMP. | pixel_sort |
| parent_path | No | Parent COMP path. The pixel-sort container is created inside this path. | /project1 |
| source_top_path | No | Absolute path to an existing TOP (e.g. '/project1/movie1'). Pulled in via a Select TOP. If omitted, a self-contained animated noiseTOP source is used (no device permissions). | |
| threshold | No | Luminance gate [0..1]. Pixels with luminance >= threshold are sortable; others are locked in place. Live-tweakable. | |
| axis | No | x = sort along rows (horizontal streaks), y = along columns (vertical streaks). | x |
| sort_by | No | Sort key: the channel the odd-even transposition sort compares on. | luminance |
| direction | No | descending puts bright/saturated pixels first — the canonical Asendorf look. Live-tweakable. | descending |
| iterations | No | Number of odd-even sort passes to run via the Feedback TOP. Higher = closer to fully sorted but heavier cook. Live-tweakable. | |
| mix | No | Blend between original (0) and sorted output (1). Live-tweakable. | |
| resolution | No | Output resolution [width, height] in pixels. |