smoothStep()
Purpose
Hermite interpolation
Description
Perform Hermite interpolation between two values
Syntax
result = smoothStep( value0, value1, factor )
Arguments
result Hermite interpolation
value0 left edge value
value1 right edge value
factor interpolation factor
Example
col = { 0, 1, 1, 1 }
// draw lines in a gradient fading from black to cyan
for i = 0 to gWidth() loop
col.a = smoothStep( 0, 1, i / gWidth() )
line( { i, 0 }, { i, gHeight() }, col )
repeat
update()
sleep( 3 )
Associated Commands