Paternoster

Rupert Russell

Ballarat, Australia

  • Available
    Products
    49
  • Artist
    Notes

Apparel

Cases & Skins

Wall Art

Home Decor

Accessories

Stationery

Artist's Description

// created with Processing see processing.org

// x = cx + r * cos(a)
// y = cy + r * sin(a)
// Where r is the radius, cx,cy the origin, and a the angle.
// Note that a must be in radians

float ellipseSize = 148;
float y = 0;
float x = 0;
float r = 800;
boolean odd = false;
int counterX = 0;
int counterY = 0;
float gapX = 1.5;
float gapY = 1.1;
int count = 0;

float space = 0.7;
float fillColour = 0;
// float nudge = (ellipseSize / 2) + space;

// The statements in the setup() function
// run once when the program begins
void setup() {
size(600, 600); // Size should be the first statement
noStroke();
fill(0); // Set fill to black
noLoop();
background(255); // Set the background to white
}

void draw() {
translate(width/2, height /2);

for (float a = 0; a < 360; a = a + 60) {
count = count + 1;
println(a);

x = cos(radians(a)) * 150;
y = sin(radians(a)) * 150;
println("x = " + x);
println("y = " + y);
ellipse(x, y, ellipseSize, ellipseSize);
}
ellipse(0,0, ellipseSize, ellipseSize);
}

void mousePressed() {
save(“test.png”);
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