From 712f556fe51bff5aa16e9da3e1190d4ac43dc744 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 16 Dec 2013 18:31:16 -0500 Subject: add help --- instructions.html | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 instructions.html (limited to 'instructions.html') diff --git a/instructions.html b/instructions.html new file mode 100644 index 0000000..2903dc1 --- /dev/null +++ b/instructions.html @@ -0,0 +1,43 @@ + + + +instructions + + + +
function parameters
+x, y = position of pixel
+t = current time (ms)
+d = imageData array
+r, g, b, a = color values
+
+Math aliases
+floor, ceil, round, abs, sign
+pow, exp, sqrt
+sin, cos, tan
+asin, acos, atan, atan2
+random()
+E, PI
+
+convenience functions
+clamp(n,min,max)
+lerp(n,a,b)
+mix(n,a,b)
+step(n,a,b)
+smoothstep(n,a,b)
+sinp, cosp (mapped to [0,1])
+pixel(x,y) == 4*(y*w+h)
+rand(n), randint(n)
+choice(array)
+deg(radians), rad(degrees)
+
+ + + -- cgit v1.2.3-70-g09d2