Stripey Polka dots 001

Rupert Russell

Ballarat, Australia

  • Available
    Products
    55
  • Artist
    Notes

Apparel

Cases & Skins

Wall Art

Home Decor

Accessories

Stationery

Artist's Description

// Inspired by https://www.dreamstime.com/stock-images-rainbow...
// https://krazydad.com/tutorials/makecolors.php

int dotSize = 200;
int dotSpace = 20;
int angle = 0;

float red, grn, blu;

float frequency1 = .6; // red
float frequency2 = .6; // green
float frequency3 = .3; // blue

int phase1 = 0;
int phase2 = 2;
int phase3 = 4;

void setup () {
size(13500, 11462);
background(0);
smooth();
}

void draw () {
noLoop();

for (int y = 1; y < height / (dotSpace + dotSize); y++) {
for (int x = 1; x < width / (dotSpace + dotSize); x ++) {

red = abs(sin(frequency1 * y / 5 + phase1) * 300);
grn = abs(sin(frequency2 * y / 5 + phase2) * 300);
blu = abs(sin(frequency3 * y / 5 + phase3) * 300);

fill(red,grn,blu);
println("red = " + red);
println("grn = " + grn);
println("blu = " + blu);

ellipse((x * dotSize) + (x * dotSpace), height – ( dotSize * y) – ( y * dotSpace), dotSize, dotSize);
println("x = " + x);
}
println("y = " + y);

}

println(“saving”);
save(“dots-colour663-5.png”);
println(“saved”);
exit();
}

desktop tablet-landscape content-width tablet-portrait workstream-4-across phone-landscape phone-portrait
desktop tablet-landscape content-width tablet-portrait workstream-4-across phone-landscape phone-portrait