Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float r = 241;
- float g = 94;
- float b = 102;
- void setup () {
- size (400,380);
- background(0);
- }
- void draw () {
- frameRate(17);
- strokeWeight(10);
- for (int i=-6; i<400; i=i+40) {
- line (0,i,400,i);
- stroke(0);
- }
- for (int a=mouseX; a<440; a=a+40) {
- line (a-40,0,a-40,400);
- stroke(a,r,g,b);
- }
- }
- void keyPressed () {
- r = random (255);
- g = random (255);
- b = random (255);
- }
- void mousePressed() {
- saveFrame();
- println("save a picture");
- }
Add Comment
Please, Sign In to add comment