Idea · Jun 20, 2026
Pixel Sort Canvas
Upload any image and watch sorting algorithms rearrange pixels by hue or brightness on the GPU in real-time, turning a CS1 concept into shareable generative art.
What it would do
Upload any image and watch classic sorting algorithms (bubble, merge, radix, bitonic) rearrange pixels by brightness, hue, or saturation in real-time, directly on the GPU. The result is a generative art piece unique to your image and algorithm choice — every sort produces a different visual journey from the scrambled state to the final gradient.
Key features
- Image upload with pixel extraction into a WebGPU buffer for GPU-side sorting
- Choose algorithm (bubble, merge, radix, bitonic), sort channel (hue, brightness, saturation), and sort direction
- Adjustable speed slider from glacial to instant so you can pause mid-sort for art screenshots
- One-click export of the current canvas state as a PNG