diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-11-22 23:19:36 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-11-22 23:19:36 -0500 |
| commit | 070b5e6d9d3c7e23c06f0ae0b75026923529c24d (patch) | |
| tree | 89c430dd17ca54ff60f885ecd99cf6cfa0f0b7ff /instructions.html | |
| parent | 04537ed34d443d0610b77420d1dbef64bc05fbfa (diff) | |
| parent | 1631cdf643283fc71bc9d70b5dcbce03ab9c2386 (diff) | |
Merge branch 'master' of lmno:dither
Diffstat (limited to 'instructions.html')
| -rw-r--r-- | instructions.html | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/instructions.html b/instructions.html deleted file mode 100644 index dff99d8..0000000 --- a/instructions.html +++ /dev/null @@ -1,68 +0,0 @@ -<!doctype html> -<html> -<head> -<title>instructions</title> -<style type="text/css"> -html,body{margin:0;padding:5px; } -pre { font-family: serif; font-size: 14px; margin:0;padding:0;} -u{ color: #866; } -i{ color: #666; } -</style> -</head> -<body> -<pre id="pre"><u>function parameters</u> -w, h, x, y -t = current time (ms) -d[] = imageData array -r, g, b, a = color values -mousex, mousey - -<u>Math aliases</u> -floor, ceil, round -abs, sign, mod(n,m) -pow, exp, sqrt -cos, sin, tan -acos, asin, atan, atan2 -random() -E, PI, PHI - -<u>convenience functions</u> -clamp(n,min,max) -mix(n,a,b) (lerp) -step(a,b) -smoothstep(min,max,n) -avg(m,n,a) -cosp, sinp (mapped to [0,1]) -pixel(x,y) == 4*(y*w+h) -dist(x,y,a,b) -angle(x,y,a,b) -rand(n), randint(n) -choice(array) -deg(radians), rad(degrees) - -<u>set pixel color</u> -rgb(r,g,b) -rgbref([rgb]) -black() white() red() -gray(n) - -<u>color spaces</u> -rgb2xyz(rgb) -xyz2rgb(xyz) -xyz2hunterlab(xyz) -hunterlab2xyz(Lab) -xyz2cielab(xyz) -cielab2xyz(Lab) -rgb2hsl(rgb) -hsl2rgb(hsl) -rgb2cmy(r,g,b) -cmy2rgb(cmy) -cmy2cmyk(cmy) -cmyk2cmy(cmyk) -(not all have been tested) -</pre> -</body> -<script> -pre.innerHTML = pre.innerHTML.replace(/\(/g,"(<i>").replace(/\)/g,"</i>)") -</script> -</html> |
