Inheritance
System.Object
RadialGradient
public class RadialGradient : Gradient, IEquatable<RadialGradient>
Constructors
Declaration
public RadialGradient(Alignment center = null, float radius = 0.5F, List<Color> colors = null, List<float> stops = null, TileMode tileMode = TileMode.clamp)
Parameters
Type |
Name |
Description |
Alignment |
center |
|
System.Single |
radius |
|
System.Collections.Generic.List<Color> |
colors |
|
System.Collections.Generic.List<System.Single> |
stops |
|
TileMode |
tileMode |
|
Fields
Declaration
public readonly Alignment center
Field Value
Declaration
public readonly float radius
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly TileMode tileMode
Field Value
Methods
Declaration
public override PaintShader createShader(Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Returns
Overrides
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public bool Equals(RadialGradient other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public static RadialGradient lerp(RadialGradient a, RadialGradient b, float t)
Parameters
Returns
Declaration
protected override Gradient lerpFrom(Gradient a, float t)
Parameters
Type |
Name |
Description |
Gradient |
a |
|
System.Single |
t |
|
Returns
Overrides
Declaration
protected override Gradient lerpTo(Gradient b, float t)
Parameters
Type |
Name |
Description |
Gradient |
b |
|
System.Single |
t |
|
Returns
Overrides
Declaration
public override Gradient scale(float factor)
Parameters
Type |
Name |
Description |
System.Single |
factor |
|
Returns
Overrides
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
Declaration
public static bool operator ==(RadialGradient left, RadialGradient right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(RadialGradient left, RadialGradient right)
Parameters
Returns
Type |
Description |
System.Boolean |
|