Vectors controlling pixels

Test 2

1 Attachment

Recent test in Processing.

Here each particle is a vector with x and y positions, that keep being updated (and moving across the screen) at each frame.

But instead of calling a function to display each particle, with lets say point(x, y), I don't actually display the object. I call a function to update the pixel of the image, located at the exactly same place where the vector is.

So instead of calling "point(location.x, location.y)", I call "image.pixels[location.x + location.y * width] = color(r, g, b, a)".

Attached is a 4k res image. You are free to download and use it :)


keyboard shortcuts: L or F like