Skip to main content

Text

Text (Statement)

Format

text x_position, y_position, string_expression
text ( x_position, y_position, string_expression )

Description

Paints a text string on the Graphics Output Window at x_position, y_position using the current color and font.

The coordinates may be whole numbers or fractions. They are measured in pixels unless a Window has been set, in which case they are in the units that window defines.

Example

color grey
rect 0,0,graphwidth,graphheight
color red
font "Times New Roman",18,50
text 10,100,"This is Times New Roman"
color darkgreen
font "Tahoma",28,100
text 10,200,"This is BOLD!"

Will draw.
fonttext.png

See Also

Font, Text, TextHeight, TextWidth, Window

History

0.9.4New To Version