color [] rainbow = {#FFF80D, #FF0DFC, #FFEB08, #FF08E3, #08F5FF};
void setup() {
size(600, 600);
background(255);
smooth();
noFill();
randomSeed(5);
strokeWeight(1);
}
void draw() {
int i = 0;
while ( i < 500) { float begin = radians(i*20); float end = begin + HALF_PI; stroke (rainbow[int(random(1, 5))]); arc(height/2, width/2, mouseX, mouseY, begin, end); i= i +20; } } void mousePressed(){ background(255); }
0 comments:
Post a Comment