Table of Contents

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 Vector2

The position of the gradient.

radius float

The 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 Vector2

The position of the gradient.

radius float

The radius of the gradent.

colors Color[]

Colors

transform Matrix3x2

The gradient's transformation matrix.

tileMode TileMode

The 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 Vector2

The position of the gradient.

radius float

The 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 Vector2

The position of the gradient.

radius float

The radius of the gradent.

stops GradientStop[]

An array of gradient stops.

transform Matrix3x2

The gradient's transformation matrix.

tileMode TileMode

The 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 float

The X position of the gradient.

y float

The Y position of the gradient.

radius float

The 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 float

The X position of the gradient.

y float

The Y position of the gradient.

radius float

The 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

Vector2

Radius

The radius of the gradient.

public float Radius { get; set; }

Property Value

float