Constructors
Checkerboard
#Create a new angled square pattern.
public Checkerboard()
colour0,
Colour for odd squares.
colour1,
Colour for even squares.
size,
Size of squares.
angle
Angle of squares.
Checkerboard
#Create a new square pattern.
public Checkerboard()
colour0,
Colour for odd squares.
colour1,
Colour for even squares.
size
Size of squares.
Checkerboard
#Create a new angled rectangular pattern.
public Checkerboard()
colour0,
Colour for odd squares.
colour1,
Colour for even squares.
sizeX,
Width of squares.
sizeY,
Height of squares.
angle
Angle of squares.
Checkerboard
#Create a new rectangular pattern.
public Checkerboard()
colour0,
Colour for odd squares.
colour1,
Colour for even squares.
sizeX,
Width of squares.
sizeY
Height of squares.
Methods
Dilate
Apply a dilation (or scaling) transformation to this shader.
Returns: 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.
Returns: Modified shader.
Fade
Add a transparency layer to this shader.
Returns: 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.
Returns: Resolved colour.
Rotate
Apply a rotation transformation to this shader.
Returns: Rotated shader.
Transform
Apply a custom transformation to this shader.
Returns: Transformed shader.
Translate
Apply a translation transformation to this shader.
Returns: Translated shader.