linearly v0.32.0Docs


linearly v0.32.0 / scalar / step

Function: step()

step(edge, x): 0 | 1

Apply a step function by comparing two values

Parameters

edge: number

The location of the edge of the step function.

x: number

The value to be used to generate the step function.

Returns

0 | 1

See

https://registry.khronos.org/OpenGL-Refpages/gl4/html/step.xhtmlopen in new window

Defined in

src/scalar.ts:318open in new window