Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- color kleur = 400;
- int positieX;
- void setup()
- {
- size(300, 300);
- }
- void draw() {
- fill(kleur);
- rect(135, 135, 40, 40);
- textSize(20);
- fill(0);
- text("Lekker kleuren",85,280);
- }
- void mouseDragged()
- {
- positieX = mouseX;
- mouseX= 100/400*255;
- kleur = color(positieX);
- }
Advertisement
Add Comment
Please, Sign In to add comment