Created
August 8, 2014 00:00
-
-
Save mk30/e15e95d1d99bde151eb6 to your computer and use it in GitHub Desktop.
purple green squigglies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| return function (r, w) { | |
| for (var i = 0; i < w.data.length; i += 4) { | |
| w.data[i] = Math.floor((Math.sin(r.data[i]))*255); | |
| w.data[i+1] = Math.floor((Math.tan(r.data[i]/80)-1)*255); | |
| w.data[i+2] = Math.floor((Math.sin(r.data[i]))* 20555); | |
| w.data[i+3] = 255; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment