Methods

ColourAt

#
Evaluate this shader at a specific ray location.
public abstract Color ColourAt(
ray,
Coincident ray.
stack
Object stack context.
)

Dilate

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

Fade

#
Add a transparency layer to this shader.
public ColourShader Fade(
transparency,
Transparency layer.
combine
If true, overlay transparency is combined with existing transparency. If false, overlay transparency overrules the existing transparency.
)
Modified shader.

Fade

#
Add a transparency layer to this shader.
public ColourShader Fade(
transparency
Transparency layer.
)
Modified shader.

ResolveColour

#
Utility function for resolving a colour with the background.
protected Color ResolveColour(
Color
colour,
Colour to resolve.
ray,
Ray associated with colour location.
stack
Object stack context.
)
Resolved colour.

Rotate

#
Apply a rotation transformation to this shader.
public ColourShader Rotate(
angle
Rotation angle (counter-clockwise).
)
Rotated shader.

Transform

#
Apply a custom transformation to this shader.
public ColourShader Transform(
transform
Transformation.
)
Transformed shader.

Translate

#
Apply a translation transformation to this shader.
public ColourShader Translate(
dx,
Horizontal translation.
dy
Vertical translation.
)
Translated shader.

TryParse

#
Try and parse a string description.
public static bool TryParse(
description,
Textual description.
out string
message,
On failure, a description of the problem will be outputted here.
shader
On success, a shader will be outputted here.
)
True on success, false on failure.

Convertors

OperationResultDescription
implicitColorColourShaderCreate a solid fill shader.
implicitstringColourShaderAttempt to parse a shader description.