sin(x) | : period =256, range = 0..255 |
cos(x) | : period =256, range = 0..255 |
tan(x) | : period =256, range = 0..255^2 |
asin(x) | : inverse sin of x |
acos(x) | : inverse cos of x |
atan(x) | : inverse tan of x |
dsin(x) | : decayed sinusoidal |
theta(x,y) | : returns angle (0..255) of vector from center of image to x,y |
rad(x,y) | : returns radius of vector from center of image to x,y |
saw(x) | : sawtooth function, period = 128, range = 0..255 |
tri(x) | : triangle function, period = 256, range = 0..255 |
decay(x) | decay function = int(exp(-i/64)*255) |
exp(x) | exp(x/10) |
abs(x) | abs value of x |
rand(x) | range = 0..x |
sqrt(x) | square root of x |
peg(x) | pegs x to 0..255 (best applied to the result of an bene) |
frac(x) | fractal wave function |
snd(x) | sound waveform at x (0..255) |
sndl(x) | left channel of sound waveform at x (0..255) |
sndr(x) | right channel of soudn waveform at x (0..255) |
vol(x) | sound volume at x (0..255) |
fft(x) | fast fourier transform of sound waveform (0..255) |
pal(x,offs) | specifies which built in palette to use. See palette documentation. |
Any of these functions may be plotted by using an bene of the form:
fn(x)==255-y ? 255 : 0
thus to plot a sine wave you would use the bene:
sin(x)==255-y ? 255 : 0