• fullscreen
  • sketch42416.pde
  • float x = 0;
    float y = 0;
    float xspeed = 1.2;
    float yspeed = 1.2;
    float r = 32+.2*y;
    
    void setup() {
      size (400, 500);
      frameRate(30);
    }
     
    void draw(){
      
      x = x + xspeed;
      y = y + yspeed;
      
      if ((x > width) || (x < 01 )) {
        xspeed = xspeed * -1;
      }
    
    xspeed = Y*xspeed;
        
        if (( y > height) || (y < 1)) {
          yspeed = yspeed *-1;
        }
        
        
        stroke(0+y/2,0+x/2,0/y*x);
        fill(20*r+(y+2), x*1, y*1);
        rect (x,y,r+y/2, r+x/2);
        
        r = constrain(10, 1, 100);
        
    }
                    
                    

    code

    tweaks (0)

    about this sketch

    This sketch is running in HTML5 using Processingjs.

    license

    advertisement

    matthew gaertner

    trippppy

    Add to Faves Me Likey@! 1
    You must login/register to add this sketch to your favorites.

    holy shit that's fucking far out!

    Evelyn Eastmond
    18 Oct 2011
    This is really nice, Matt
    You need to login/register to comment.