The intention behind this piece was to depict some sort of digital matrixy space thing. As you can see, I have clearly failed to do that. However, with a bit of tweaking, I managed to get it to a point where it didn’t look too bad to my eyes.
Have a look at the Processing source code below.
int count = 0; void setup() { size(1080, 1080); noLoop(); rectMode(CENTER); frameRate(1); } void draw() { count++; if (count == 10) { count = 0; frameRate(random(1, 25)); } background(0); float z = random(0.01,0.3); for (int y = 0; y < height; y += 10) { for (int x = 0; x < width; x += 10) { smooth(); stroke(random(255), random(255)); if (random(0, 1) > z){ point(x, y); } else { noStroke(); fill(random(255), random(255), 200); rect(x, y, 5, 5); } } } saveFrame("digital-space.jpg"); }