Class RadialGradientPaint
Represents a radial gradient paint defined by two circles. The first circle is centered at Center0 with radius Radius0. The second circle is centered at Center1 with radius Radius1. The color transition is computed between these two circles. Compatible with two-circle radial gradients used by HTML Canvas and OpenType COLR v1.
public sealed class RadialGradientPaint : Paint
- Inheritance
-
RadialGradientPaint
- Inherited Members
Properties
Center0
Gets the center of the starting circle of the gradient.
public Vector2 Center0 { get; init; }
Property Value
Center1
Gets the center of the ending circle of the gradient.
public Vector2 Center1 { get; init; }
Property Value
Radius0
Gets the radius of the starting circle of the gradient. If SixLabors.Fonts.Rendering.RadialGradientPaint.Units is ObjectBoundingBox, the radius is normalized to the bounds.
public float Radius0 { get; init; }
Property Value
Radius1
Gets the radius of the ending circle of the gradient. If SixLabors.Fonts.Rendering.RadialGradientPaint.Units is ObjectBoundingBox, the radius is normalized to the bounds.
public float Radius1 { get; init; }
Property Value
Spread
Gets the spread method applied when sampling outside the [0, 1] range.
public SpreadMethod Spread { get; init; }
Property Value
Stops
Gets the ordered gradient stops, ascending by Offset.
public GradientStop[] Stops { get; init; }