Skip to main content

Color Ramp

Map a value through a color ramp into an RGB attribute.

Syntax​

{ "id": "n1", "op": "color-ramp", "name": "color-ramp", "x": 0, "y": 0, "params": {} }

An edge into it ends at "targetPort": "in"; one out of it starts at "sourcePort": "out"; a parameter is set in params (leave out the ones at their default), driven by an edge to par:min, or read elsewhere as ch('color-ramp/min').

Inputs​

PortTypeTakes
intableone edge

Parameters​

ParameterKindDefaultChoices
inputexpr"value"
rampmenu"viridis"37 choices
minfloat0
maxfloat1
namestring"Cd"

Outputs​

PortType
outtable

Details​

  • Category: Color
  • Operator: color-ramp

Older projects​

Projects saved before documents used operator classes. These convert to color-ramp when they open: CategoricalColorRampOp, ColorRampOp.