Constructors
GradientRadial
#Create a new gradient fill.
Parameters:
| x (float) | Centre x. |
| y (float) | Centre y. |
| radius0 (float) | First radius. |
| radius1 (float) | Second radius. |
| mapping (Progression) | Mapping behaviour. |
GradientRadial
#Create a new gradient fill.
Parameters:
| centre (PointF) | Gradient centre point. |
| radius0 (float) | Radius associated with start of gradient. |
| radius1 (float) | Radius associated with end of gradient. |
| mapping (Progression) | Mapping behaviour. |
Methods
Dilate
Apply a dilation (or scaling) transformation to this shader.
Flip
Repeat and flip a value within a [0, limit] domain.
Flip
Repeat and flip a value within a [0, limit] domain.
Parameters:
| angle (Angle) | Rotation angle (counter-clockwise). |
Returns: Rotated shader.
Transform
Apply a custom transformation to this shader.
Parameters:
| transform (Transform2D) | Transformation. |
Returns: Transformed shader.
Translate
Apply a translation transformation to this shader.
ValueAt
#Evaluate this shader at a specific ray location.
Parameters:
| ray (Ray) | Coincident ray. |
| stack (IObjectStack) | Object stack context. |
Overrides: ValueShader.ValueAt