Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup(){
- size(600,600);
- }
- void draw(){
- background(mouseY, mouseX, 25);
- float angle = 0;
- float x = mouseX;
- float y = mouseY;
- fill(map(x, 0, width, 0, 255), map(y, 0, height, 0, 255), 75);
- for(int i = 0; i < width; i += 10){
- for(int j = 0; j < height; j += 20){
- rotate(radians(angle));
- angle += 1;
- rect(i,j, 5,5);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement