charColor
const func color: charColor (in char: ch, in color: background)
-
Map a character to a pixel color.
This is used for picture patterns, a simple way to describe graphic
images as readable text.
- Returns:
- the color that corresponds to the given character ch.
createPixmap
const func PRIMITIVE_WINDOW: createPixmap (in array string: pattern,
in integer: scale, in color: background)
-
Convert a picture pattern into a pixmap.
A picture pattern is a simple way to describe graphic images as
readable text. It is an array of strings, where every character
describes the color of a pixel.
- Returns:
- the result of the conversion.
drawPattern
const proc: drawPattern (inout PRIMITIVE_WINDOW: win, in integer: xPos,
in integer: yPos, in array string: pattern, in integer: scale,
in color: background)
-
Draws a scaled pattern to a position at a window.
The upper left corner of the pattern is drawn to (xPos, yPos).
The pattern is drawn in horizontal lines from the middle upward
and downward. This is done for better appearance at slow
computers.