Skip to content

Instantly share code, notes, and snippets.

@felixmc
Created December 31, 2013 02:58
Show Gist options
  • Save felixmc/8191837 to your computer and use it in GitHub Desktop.
Save felixmc/8191837 to your computer and use it in GitHub Desktop.
object RedFlashSketch extends ProcessingSketch {
val redInterpolation = new Interpolation( 0, 255, 60, Interpolation.easeInOutSine, Interpolation.Direction.Alternate )
override def draw() {
background( new RGBColor( red = redInterpolation.value, green = 0, blue = 0 ) )
redInterpolation.update
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment