• fullscreen
  • sketch_feb23c.pde
  • float angle = 0.0;
    
    PShape flash;
    
    
    void setup(){
      size(500,500);
      smooth();
      background(255);
      flash = loadShape("flash.svg");
      shapeMode(CENTER);
    }
    
    
    void draw(){
      
      float sinVal = sin(angle);
      
      float gray = map(sinVal, -1,1,0,mouseX);
      background(gray);
      angle+=0.1;
      shape(flash, width/2, height/2);
      
    }
    
    

    code

    tweaks (0)

    about this sketch

    This sketch is running as Java applet, exported from Processing.

    license

    advertisement

    Renee Kim

    type_motion_1

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

    You need to login/register to comment.