Advertisement
MrsMcLead

Hiding Ellipse

Jan 26th, 2018
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup() {
  2.     //runs exactly once!
  3.     size(500,500);
  4.     background(#6F3255);
  5.  
  6. }
  7.  
  8. void draw() {
  9.         //repeats forever and ever and ever
  10.         //background rectangle
  11.         fill(#895EA8);
  12.         rect(0,0,width,height);
  13.        
  14.         //some triangles
  15.         fill(#2B2C4D);
  16.         triangle(250,10,230,100,290,50);
  17.         triangle(300,60,280,150,340,100);
  18.                  
  19.         //my sprite
  20.         fill(#ABD0CD);
  21.         stroke(#3AA1A3);
  22.       ellipse(mouseX, mouseY, 20, 20);
  23.        
  24.         //my rectangles
  25.         fill(#2B2C4D);
  26.       rect(200,200,100,100);
  27.         rect(400,400,100,100);
  28.        
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement