summaryrefslogtreecommitdiff
path: root/instructions.html
diff options
context:
space:
mode:
authorjules <jules@okfoc.us>2013-12-16 23:52:28 -0500
committerjules <jules@okfoc.us>2013-12-16 23:52:28 -0500
commitf85814b15b6f6d0a80e0e15dc1d15e8c43147b99 (patch)
tree7aa0811c413a8f57a623c80df75d2615f5ae70f5 /instructions.html
parent12f3f9532fa614b5a0a201e65b06d91c88f68871 (diff)
E, PI, PHI
Diffstat (limited to 'instructions.html')
-rw-r--r--instructions.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/instructions.html b/instructions.html
index f0c6800..435a9d9 100644
--- a/instructions.html
+++ b/instructions.html
@@ -20,10 +20,10 @@ mousex, mousey
<u>Math aliases</u>
floor, ceil, round, abs, sign
pow, exp, sqrt
-sin, cos, tan
-asin, acos, atan, atan2
+cos, sin, tan
+acos, asin, atan, atan2
random()
-E, PI
+E, PI, PHI
<u>convenience functions</u>
clamp(n,min,max)
@@ -31,7 +31,7 @@ lerp(n,a,b)
mix(n,a,b)
step(n,a,b)
smoothstep(n,a,b)
-sinp, cosp (mapped to [0,1])
+cosp, sinp (mapped to [0,1])
pixel(x,y) == 4*(y*w+h)
rand(n), randint(n)
choice(array)