SetTextColor
(Difference between revisions)
Vegas (Talk | contribs)
(Created page with "Change the text color. setTextColor({r, g, b, a}) : r = Red / g = Green / b = Blue / a = Alpha Example, change text color to red and semi-transparent : Text0 = getObje...")
Newer edit →
(Created page with "Change the text color. setTextColor({r, g, b, a}) : r = Red / g = Green / b = Blue / a = Alpha Example, change text color to red and semi-transparent : Text0 = getObje...")
Newer edit →
Revision as of 00:40, 20 April 2012
Change the text color.
setTextColor({r, g, b, a}) : r = Red / g = Green / b = Blue / a = Alpha
Example, change text color to red and semi-transparent :
Text0 = getObject("Text0") function onSceneUpdate() if isKeyPressed("SPACE") then setTextColor(Text0, {1, 0, 0, 0.50}) end end