Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. float x,y,a,b;
  2. float size;
  3.  
  4. void setup(){
  5. size(500,500);
  6. x=random(width);
  7. y=random(height);
  8. }
  9.  
  10.  
  11. void draw(){
  12.  
  13.  
  14. }
  15.  
  16. void mousePressed(){
  17. float tailEnd=random(10,60);
  18. fill(random(255),random(255),random(255));
  19. corgi(mouseX, mouseY);
  20.  
  21. }
  22.  
  23. void corgi(float a,float b) {
  24.  
  25. rect(a,b,100,100);
  26. rect(a+25,b+75,30,30);
  27.  
  28.  
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement