ben5NL

Untitled

Jun 14th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. color stipKleur = color(255,0,255); //Magenta
  2. color achtergrond = color(0,255,255); //Cyaan
  3. int ellipsX = 50; int ellipsY = 50;
  4.  
  5. void setup()
  6. {
  7. size(500, 500);
  8. }
  9. void draw()
  10. {
  11. background(achtergrond);
  12. noStroke();
  13. fill(stipKleur); //kleur stip
  14. ellipse(ellipsX, ellipsY, 30, 30); //cirkel
  15. }
  16. void mouseClicked()
  17. {
  18. ellipsX = mouseX;
  19. ellipsY = mouseY;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment