Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. void setup (){
  2. size(600, 600);//size of canvas
  3.  
  4. background(120, 0, 11);//bachground colour HSB
  5.  
  6. }
  7.  
  8. void draw() {//opens draw loop which runs on loop
  9.  
  10. noStroke();
  11. fill(230, 45, 45);
  12. ellipse(34, 34, 50, 50);//draws a cricle at x and y coords 34, 34 with size 50 by 50
  13. ellipse(134, 134, 50, 50);//draws another circle
  14. ellipse(234, 234, 50, 50);//draws another circle
  15. ellipse(334, 334, 50, 50);//"""
  16. ellipse(434, 434, 50, 50);//"""
  17. ellipse(534, 534, 50, 50);//"""
  18. noStroke();
  19. fill(230, mouseX, mouseY, 50);//fill is pretty and ranges in a rainbow
  20. ellipse(mouseX, mouseY, 50, 50);//new circle same diameter as the others but it can move around
  21.  
  22.  
  23.  
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement