Font.getColorMask
From Spheriki
Get the color mask currently being used with the font.
Contents |
[edit]
Usage
Color font.getColorMask();
- font Sphere Font object. The font to grab the color mask from.
- Color is returned, which is a Sphere Color object that represents the mask color being used by the font.
[edit]
Examples
Font.getColorMask() is typically used in conjunction with Font.setColorMask():
var font = GetSystemFont(); var green = CreateColor(0, 255, 0); var red = CreateColor(255, 0, 0); function game() { font.setColorMask(green); font.drawText(0, 0, "green"); var old_color = font.getColorMask(); font.setColorMask(red); font.drawText(0, 15, "red"); font.setColorMask(old_color); font.drawText(0, 30, "green again"); FlipScreen(); GetKey(); }
[edit]
Notes
- To set the mask color of the font, use Font.setColorMask().
[edit]
See also
- Sphere Font object
- Sphere Color object
- Color masking
- CreateColor()
- FlipScreen()
- GetKey()
- GetSystemFont()

