Untitled

Rupert Russell

Ballarat, Australia

  • Available
    Products
    49
  • Artist
    Notes

Apparel

Cases & Skins

Wall Art

Home Decor

Bags

Stationery

Artist's Description

Created with processing
based on code by lorenzoxiao

int segmentCount = 360;
int radius = 1800;

void setup() {
size(2800, 2800);
}

void draw() {

noStroke();
colorMode(HSB, 360, 100, 100);
background(360);

float angleStep = 360/segmentCount;

beginShape(TRIANGLE_FAN);
vertex(width/2, height/2);
for (float angle=0; angle<=360; angle+=angleStep) {

float vx = width/2 + cos(radians(angle))radius;
float vy = height/2 + sin(radians(angle))
radius;

vertex(vx, vy);
fill(angle/4, 100, 100);
}
endShape();
}

void keyReleased() {
if (key >=‘0’ && key <= ‘8’)
segmentCount = int(pow(2, key-‘0’)+2);
save(“test-2.png”);
}

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

10% off

for joining the Redbubble mailing list

Receive exclusive deals and awesome artist news and content right to your inbox. Free for your convenience.