X Media:drawText

From GiderosMobile
Revision as of 13:32, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2016.1
Class: Media

Description

Draws a text at x,y coordinates with provided settings. <syntaxhighlight lang="lua"> Media:drawText(x, y, text, hexColor, fontSize, alpha) </source>

Parameters

x: (number) x coordinate of the text
y: (number) y coordinate of the text
text: (string) text string
hexColor: (hexadecimal) color in hexadecimal
fontSize: (number) font size
alpha: (number) alpha value