Skip to content

Instantly share code, notes, and snippets.

@enjalot
Created October 13, 2013 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enjalot/6966168 to your computer and use it in GitHub Desktop.
Save enjalot/6966168 to your computer and use it in GitHub Desktop.
fade
{"description":"fade","endpoint":"","display":"canvas","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"inlet.pde":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"thumbnail":"http://i.imgur.com/pjsYvzx.gif"}
void setup() {
size(480, 120);
}
time = 0;
void draw() {
time = time % 100;
t = time / 100;
fill(255, 255, 255, lerp(10, 50, t));
rect(0, 0, tributary.sw, tributary.sh);
stroke(122);
if (mousePressed) {
fill(122);
} else {
stroke(200)
fill(200);
}
ellipse(mouseX, mouseY, 80, 80);
time += 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment