GradientPolar

ValueShader
public sealed class GradientPolar : ValueShader
Implements a shader for angular gradient fills.

Constructors

GradientPolar

#
Create a new polar gradient.
public GradientPolar(
x,
Centre x.
y,
Centre y.
angle
Angle for the zero-degree axis.
)

GradientPolar

#
Create a new polar gradient.
public GradientPolar(
PointF
centre,
Centre of shader.
angle
Angle for zero-degree axis.
)

Methods

Dilate

Apply a dilation (or scaling) transformation to this shader.
public ValueShader Dilate(
sx,
Horizontal dilation.
sy
Vertical dilation.
)
inherited fromValueShader
Dilated shader.

Flip

Repeat and flip a value within a [0, limit] domain.
protected double Flip(
value,
limit
)
inherited fromValueShader

Flip

Repeat and flip a value within a [0, limit] domain.
protected float Flip(
value,
limit
)
inherited fromValueShader

Rotate

Apply a rotation transformation to this shader.
public ValueShader Rotate(
angle
Rotation angle (counter-clockwise).
)
inherited fromValueShader
Rotated shader.

Transform

Apply a custom transformation to this shader.
public ValueShader Transform(
transform
Transformation.
)
inherited fromValueShader
Transformed shader.

Translate

Apply a translation transformation to this shader.
public ValueShader Translate(
dx,
Horizontal translation.
dy
Vertical translation.
)
inherited fromValueShader
Translated shader.

ValueAt

#
Evaluate this shader at a specific ray location.
public override float ValueAt(
ray,
Coincident ray.
stack
Object stack context.
)