Font.drawZoomedText

From Spheriki

Jump to: navigation, search

Draw scaled text using the font.


Contents

Usage

font.drawZoomedText(x, y, scale, text);
  • font Sphere Font object. The font to draw the text with.
  • x number. X coordinate of the top-left corner of the zoomed text.
  • y number. Y coordinate of the top-left corner of the zoomed text.
  • scale number. The scaling factor. 1.0 = normal size, 0.5 = half size, 2.0 = double size and so on.
  • text string. The text to draw scaled.


Examples

This will grab some attention.

var font = GetSystemFont();
font.drawZoomedText(0, 0, 4, "HELLO WORLD!");
FlipScreen();
GetKey();


Notes


See also

  • Sphere Font object
Personal tools