Version 0.3.2
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
love.graphics.draw( string, x, y, angle, s )
Draws rotated text in the current color.
Usage
love.graphics.draw( string, x, y, angle, s )
Arguments
stringA text string.
xThe position on the x-axis.
yThe position on the y-axis.
angleThe angle of rotation (in degrees).
sThe scale factor.
Returns
Nothing
Examples
Example 1: Draw some rotated/scaled text. love.graphics.draw("This is text is slanted and scaled normally!", 100, 100, 20, 1)
love.graphics.draw("This is text is straight and twice as big!", 100, 100, 0, 2)
love.graphics.draw("This is text is slanted and half as big!", 100, 100, 20, 0.5)