public sealed class Motif
Describes a single hatch fill. It pays to re-use a Hatch instance as often as possible, since it caches hatch textures.

Constructors

Motif

#
public Motif(MotifFlavour flavour, float strength, Color background, Color foreground)
Create a new hatch motif.
flavour (MotifFlavour)Flavour.
strength (float)Strength between zero and one.
background (Color)Background colour.
foreground (Color)Foreground colour.

Motif

#
public Motif(MotifFlavour flavour, MotifStrength strength, Color colour)
Create a new hatch motif with a transparent background.
flavour (MotifFlavour)Flavour.
strength (MotifStrength)Predefined motif strength.
colour (Color)Foreground colour.

Fields

Scale

#
public const float Scale = 0.25
Gets the scale at which hatch motif textures are normally drawn.

Properties

Background

#
public Color Background { get; }
Gets the background colour of this motif.

Flavour

#
public MotifFlavour Flavour { get; }
Gets the flavour of this motif.

Foreground

#
public Color Foreground { get; }
Gets the foreground colour of this motif.

Strength

#
public float Strength { get; }
Gets the strength of this motif. Any value less than or equal to zero implies a motif made up entirely out of background, and any value larger than or equal to one implies a motif made up entirely out of foreground.

Texture

#
public Bitmap Texture { get; }
The cached texture for this motif, do not modify this bitmap unless you know what you are doing.