Skip to main content
100%

Fork of Pixels Testing

✓ Published1🌍 Public
CCurran Kelleher
Last edited Jul 5, 2022
Created on Jul 5, 2022
Forked from Pixels Testing

This example uses Canvas pixel manipulation to create an animated, generative art piece. The code initializes an `ImageData` buffer with random green values, then in each animation frame applies a cellular automaton-like filter using `getImageData` and `putImageData`. The algorithm calculates a blur from neighboring pixels and mixes it with a sharpened value based on a moving horizontal band, creating a shifting, organic texture. The animation runs via `requestAnimationFrame`, and a `drawImage` call subtly shifts the canvas each frame.

AI-generated description

Decided to sit down and just create art.

MIT Licensed

Similar vizzes