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