• fullscreen
  • sketch_jan24_Snow_Melts_.pde
  • void	
      setup(){	
       	
      size(200,200);	
      	
       }	
       void	
      draw(){	
      	
      background(0,0,mouseY);	
       	
      fill(200);	
       	
      ellipse(100,mouseY,50,50);	
      
      fill(255,201,3);
      
      ellipse(100,mouseY-170,50,50);
       	
      fill(255,255,255);	
       	
      rect(0,100,200,200);
      
      if (mouseY>180){
        fill(10,200,10);
        rect(0,100,200,200);
      }
      
      	
      
    }	
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Sean Gillespie

    Interactive Sketch

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

    Using the basic layout of the template from Thursday's class, I added a change from day to night, and snow to grass. Having trouble figuring out how to add brightness as a variable, or create a progression from one color to another.

    You need to login/register to comment.