Inheritance
System.Object
Gradient
public class Gradient : PaintShader
Methods
Declaration
public static Gradient linear(Offset start, Offset end, List<Color> colors, List<float> colorStops = null, TileMode tileMode = TileMode.clamp, Matrix3 matrix = null)
Parameters
Type |
Name |
Description |
Offset |
start |
|
Offset |
end |
|
System.Collections.Generic.List<Color> |
colors |
|
System.Collections.Generic.List<System.Single> |
colorStops |
|
TileMode |
tileMode |
|
Matrix3 |
matrix |
|
Returns
Declaration
public static Gradient radial(Offset center, float radius, List<Color> colors, List<float> colorStops = null, TileMode tileMode = TileMode.clamp, Matrix3 matrix = null)
Parameters
Type |
Name |
Description |
Offset |
center |
|
System.Single |
radius |
|
System.Collections.Generic.List<Color> |
colors |
|
System.Collections.Generic.List<System.Single> |
colorStops |
|
TileMode |
tileMode |
|
Matrix3 |
matrix |
|
Returns
Declaration
public static Gradient sweep(Offset center, List<Color> colors, List<float> colorStops = null, TileMode tileMode = TileMode.clamp, float startAngle = 0F, float endAngle = default(float), Matrix3 matrix = null)
Parameters
Type |
Name |
Description |
Offset |
center |
|
System.Collections.Generic.List<Color> |
colors |
|
System.Collections.Generic.List<System.Single> |
colorStops |
|
TileMode |
tileMode |
|
System.Single |
startAngle |
|
System.Single |
endAngle |
|
Matrix3 |
matrix |
|
Returns