Sample Gradient

Gets the color at the specified position along the gradient, given a position from 0 (left) to 1 (right).

Interface

Inputs

ParameterDetailsPossible Types
-No Primary Input-
Gradient

Default: Table { element: [GradientStops { position: [0.0, 1.0], midpoint: [0.5, 0.5], color: [Color { red: 0.0, green: 0.0, blue: 0.0, alpha: 1.0 }, Color { red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0 }] }], transform: [DAffine2 { matrix2: DMat2 { x_axis: DVec2(1.0, 0.0), y_axis: DVec2(0.0, 1.0) }, translation: DVec2(0.0, 0.0) }], alpha_blending: [AlphaBlending { blend_mode: Normal, opacity: 1.0, fill: 1.0, clip: false }], source_node_id: [None] }

Table<GradientStops>
Position

Default: 0

f64

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

Table<Color>