draw_text(STRING*,var x,var y,
COLOR*)
Writes a string at the given XY screen position in the current frame,
using a proportional TrueType font (default: Arial 20 bold)
Parameters:
STRING* |
the string to be written |
x, y |
the screen position in pixels from the upper left corner |
COLOR* |
a BGR color vector that determines the text color |
Remarks:
The string is only written for 1 frame, so for displaying the string permanently
you need a while ... wait(1)
loop.
Speed:
Fast
Example:
while(1)
{
draw_text("Test!",100,10,vector(100,100,255)); // bright red text
wait(1);
}
See also:
draw_textmode,
draw_obj
► latest
version online