G-code Preview — API Reference
Guide
npm
GitHub
Preparing search index...
@chestnutlabs/gcode-colors
rampColor
Function rampColor
rampColor
(
ramp
:
RGB
[]
,
t
:
number
)
:
RGB
Sample a color ramp at t∈[0,1] with linear interpolation between stops.
Parameters
ramp
:
RGB
[]
t
:
number
Returns
RGB
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Guide
npm
GitHub
G-code Preview — API Reference
Loading...
Sample a color ramp at t∈[0,1] with linear interpolation between stops.