Motif
ReferencesDescribes a single hatch fill. It pays to re-use a Hatch instance as often as possible, since it caches hatch textures.
Constructors
Motif
#Create a new hatch motif.
Parameters:
| flavour (MotifFlavour) | Flavour. |
| strength (float) | Strength between zero and one. |
| background (Color) | Background colour. |
| foreground (Color) | Foreground colour. |
Motif
#Create a new hatch motif with a transparent background.
Parameters:
| flavour (MotifFlavour) | Flavour. |
| strength (MotifStrength) | Predefined motif strength. |
| colour (Color) | Foreground colour. |
Fields
Properties
Strength
#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.