GradientStopclass

A color stop at a normalized position in a shape gradient.

objectGradientStop
Namespace
global
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.Fill.GradientStop

Constructors1

Showing 1 constructors

public GradientStop(float offset, Color color)PUBLICCONSTRUCTOR

Creates a stop with a normalized position and straight-alpha color.

ParameterTypeDescription
offsetfloat
colorColor

Properties2

Showing 2 properties

public float Sandbox.Fill.GradientStop.Offset { get; set; }PUBLICGETSET

Normalized position in [0, 1], validated when constructing a gradient.

Returns:float

On this page