Class RadialGradient
- Namespace
- SimulationFramework.Drawing
- Assembly
- SimulationFramework.dll
Represents a radial gradient.
public sealed class RadialGradient : Gradient
- Inheritance
-
RadialGradient
- Inherited Members
Constructors
RadialGradient(Vector2, float, params Color[])
Creates a new instance of the RadialGradient class.
public RadialGradient(Vector2 position, float radius, params Color[] colors)
Parameters
position
Vector2The position of the gradient.
radius
floatThe radius of the gradent.
colors
Color[]The gradient's colors.
RadialGradient(Vector2, float, Color[], Matrix3x2, TileMode)
Creates a new instance of the RadialGradient class.
public RadialGradient(Vector2 position, float radius, Color[] colors, Matrix3x2 transform, TileMode tileMode = TileMode.Clamp)
Parameters
position
Vector2The position of the gradient.
radius
floatThe radius of the gradent.
colors
Color[]Colors
transform
Matrix3x2The gradient's transformation matrix.
tileMode
TileModeThe gradients tile mode.
RadialGradient(Vector2, float, params GradientStop[])
Creates a new instance of the RadialGradient class.
public RadialGradient(Vector2 position, float radius, params GradientStop[] stops)
Parameters
position
Vector2The position of the gradient.
radius
floatThe radius of the gradent.
stops
GradientStop[]An array of gradient stops.
RadialGradient(Vector2, float, GradientStop[], Matrix3x2, TileMode)
Creates a new instance of the RadialGradient class.
public RadialGradient(Vector2 position, float radius, GradientStop[] stops, Matrix3x2 transform, TileMode tileMode = TileMode.Clamp)
Parameters
position
Vector2The position of the gradient.
radius
floatThe radius of the gradent.
stops
GradientStop[]An array of gradient stops.
transform
Matrix3x2The gradient's transformation matrix.
tileMode
TileModeThe gradients tile mode.
RadialGradient(float, float, float, params Color[])
Creates a new instance of the RadialGradient class.
public RadialGradient(float x, float y, float radius, params Color[] colors)
Parameters
x
floatThe X position of the gradient.
y
floatThe Y position of the gradient.
radius
floatThe radius of the gradent.
colors
Color[]The gradient's colors.
RadialGradient(float, float, float, params GradientStop[])
Creates a new instance of the RadialGradient class.
public RadialGradient(float x, float y, float radius, params GradientStop[] stops)
Parameters
x
floatThe X position of the gradient.
y
floatThe Y position of the gradient.
radius
floatThe radius of the gradent.
stops
GradientStop[]An array of gradient stops.
Properties
Position
The position of the gradient.
public Vector2 Position { get; set; }
Property Value
Radius
The radius of the gradient.
public float Radius { get; set; }