GradientDisc

ValueShader
public sealed class GradientDisc : ValueShader
Implements a value shader for distances to a disc.

Constructors

GradientDisc

#
Create a new boundary shader.
public GradientDisc(
disc,
Boundary disc.
scale,
Unit distance length.
Progression
mapping,
Mapping behaviour.
interior = null,
Interior value override.
exterior = null
Exterior value override.
)

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.
)