API Referenceglobal
GradientBuilderclass
Builds a gradient by value without allocating stop arrays. Add 2 to 8 stops before converting to Fill.
object→GradientBuilder
Methods2
Showing 2 methods
public Sandbox.Fill.GradientBuilder WithAngle(float degrees)
Returns a linear or conic gradient with an absolute clockwise angle in degrees from right. Radial gradients have no angle.
| Parameter | Type | Description |
|---|---|---|
| degrees | float | — |
public Sandbox.Fill.GradientBuilder WithStop(float offset, Color color)
Returns a copy with another stop. Offsets are ordered in [0, 1]; equal offsets create hard transitions.
| Parameter | Type | Description |
|---|---|---|
| offset | float | — |
| color | Color | — |
No results match this filter.