Difference between revisions of "love.graphics.print"
m (Linkified) |
|||
Line 25: | Line 25: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Draws text on screen. If no Font is set, one will be created and set (once) if needed.}} | {{#set:Description=Draws text on screen. If no Font is set, one will be created and set (once) if needed.}} | ||
+ | == Other Languages == | ||
+ | {{i18n|love.graphics.print}} |
Revision as of 20:17, 18 November 2010
Draws text on screen. If no Font is set, one will be created and set (once) if needed.
Contents
Function
Synopsis
love.graphics.print( text, x, y, r, sx, sy )
Arguments
string text
- The text to draw.
number x
- The position to draw the object (x-axis).
number y
- The position to draw the object (y-axis).
number r (0)
- Orientation (radians).
number sx (1)
- Scale factor (x-axis).
number sy (sx)
- Scale factor (y-axis).
Returns
Nothing.
Examples
A lame example
function love.draw()
love.graphics.print("This is a pretty lame example.", 10, 200)
end
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info