Advertisement
Guest User

Untitled

a guest
May 6th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. void setup ()
  2. {
  3. size(400,400);
  4. }
  5.  
  6. void draw()
  7. {
  8. background(255);
  9. fill(150);
  10. rect(100,100,20,20);
  11.  
  12. if (mousePressed)
  13. {
  14.  
  15. String text= "The mouse is pressed and over the button";
  16. fill(0);
  17. text(text, mouseX+5, mouseY-5);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement