Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int
- h = 100,
- w = 500;
- void setup () {
- size (1200, 800);
- noStroke ();
- //rectMode (CENTER);
- h = int(height * 0.1);
- w = int(height * 0.5);
- }
- void draw () {
- background (255);
- fill (240, 190, 70);
- rect (mouseX, mouseY - h, w, h);
- fill (40, 100, 70);
- rect (mouseX, mouseY, w, h);
- fill (180, 50, 50);
- rect (mouseX, mouseY + h, w, h);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement