Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- color stipKleur = color(255,0,255); //Magenta
- color achtergrond = color(0,255,255); //Cyaan
- int ellipsX = 50; int ellipsY = 50;
- void setup()
- {
- size(500, 500);
- }
- void draw()
- {
- background(achtergrond);
- noStroke();
- fill(stipKleur); //kleur stip
- ellipse(ellipsX, ellipsY, 30, 30); //cirkel
- }
- void mouseClicked()
- {
- ellipsX = mouseX;
- ellipsY = mouseY;
- }
Advertisement
Add Comment
Please, Sign In to add comment