Inheritance
System.Object
Gradient
public abstract class Gradient
Constructors
Declaration
public Gradient(List<Color> colors = null, List<float> stops = null)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<Color> |
colors |
|
System.Collections.Generic.List<System.Single> |
stops |
|
Fields
Declaration
public readonly List<Color> colors
Field Value
Type |
Description |
System.Collections.Generic.List<Color> |
|
Declaration
public readonly List<float> stops
Field Value
Type |
Description |
System.Collections.Generic.List<System.Single> |
|
Methods
Declaration
protected List<float> _impliedStops()
Returns
Type |
Description |
System.Collections.Generic.List<System.Single> |
|
Declaration
public abstract PaintShader createShader(Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Returns
Declaration
public static Gradient lerp(Gradient a, Gradient b, float t)
Parameters
Returns
Declaration
protected virtual Gradient lerpFrom(Gradient a, float t)
Parameters
Type |
Name |
Description |
Gradient |
a |
|
System.Single |
t |
|
Returns
Declaration
protected virtual Gradient lerpTo(Gradient b, float t)
Parameters
Type |
Name |
Description |
Gradient |
b |
|
System.Single |
t |
|
Returns
Declaration
public abstract Gradient scale(float factor)
Parameters
Type |
Name |
Description |
System.Single |
factor |
|
Returns