How to randomise colors (just 6 colours)
in
Programming Questions
•
3 years ago
Hi all,
I'm new to processing so I hope you can help!
So heres my code:
Thanks in advance for any replies!
I'm new to processing so I hope you can help!
So heres my code:
- void setup(){
size(700, 700);
smooth();
background(0);
}
void draw(){
stroke(255,8,8);
noFill();
strokeWeight(50);
arc(700, 700, 1300, 1300, PI, TWO_PI-PI/2);
stroke(255,153,0);
noFill();
strokeWeight(50);
arc(700, 700, 1200,1200, PI, TWO_PI-PI/2);
stroke(255,234,0);
noFill();
strokeWeight(50);
arc(700, 700, 1100, 1100, PI, TWO_PI-PI/2);
stroke(0,255,1);
noFill();
strokeWeight(50);
arc(700, 700, 1000, 1000, PI, TWO_PI-PI/2);
stroke(26,230,255);
noFill();
strokeWeight(50);
arc(700, 700, 900, 900, PI, TWO_PI-PI/2);
stroke(186,3,255);
noFill();
strokeWeight(50);
arc(700, 700, 800, 800, PI, TWO_PI-PI/2);
}
Thanks in advance for any replies!
1
