Inheritance
System.Object
SweepGradient
public class SweepGradient : Gradient, IEquatable<SweepGradient>
Constructors
Declaration
public SweepGradient(Alignment center = null, float startAngle = 0F, float endAngle = default(float), List<Color> colors = null, List<float> stops = null, TileMode tileMode = TileMode.clamp)
Parameters
Type |
Name |
Description |
Alignment |
center |
|
System.Single |
startAngle |
|
System.Single |
endAngle |
|
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 endAngle
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly float startAngle
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(SweepGradient other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public static SweepGradient lerp(SweepGradient a, SweepGradient 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 ==(SweepGradient left, SweepGradient right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(SweepGradient left, SweepGradient right)
Parameters
Returns
Type |
Description |
System.Boolean |
|