Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
everything above the big '////////' line (line 61) is a hack i threw
together which averages some frames to achieve a motion blur effect;
i just copy 'n' paste it every time i make a new sketch, and think of
setup_() as setup() and draw_() as draw().
the variable 't' controls time and runs from 0 to 1.
the bit fiddling is just a faster way of pulling the red, green and
blue values out of pixels, if i recall correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment