Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*101 dots
- garland watson
- 10/16/2019*/
- //setup
- size(500,500);
- int dotcount = 1;
- int dotcolor;
- int x = int(random(0,width));
- int y = int(random(0,height));
- noStroke();
- //actual work
- while(dotcount<= 101){
- dotcolor = int(random(1,5));
- if (dotcolor==1) {
- fill(0,0,random(255));
- }
- else if (dotcolor == 2){
- fill(0,random(255),0);
- }
- else {
- fill(random(255),0,0);
- }
- ellipse(x,y,30,30);
- x = int(random(0,width));
- y =int(random(0,height));
- dotcount++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement