Difference between revisions of "D3d.SetColor"

From Nomad DB
 
Line 1: Line 1:
 +
{{Page_WD2}}{{Page_MDE}}{{Page_WDL}}
 
Sets the current rendering color for shapes and text.
 
Sets the current rendering color for shapes and text.
  
Line 12: Line 13:
  
 
== Related Pages ==
 
== Related Pages ==
* [[WD2 ScriptHook: Rendering]]
+
* [[ScriptHook: Rendering]]
  
 
[[Category:WD2 ScriptHook Lua]]
 
[[Category:WD2 ScriptHook Lua]]
 +
[[Category:WDL ScriptHook Lua]]

Latest revision as of 11:11, 15 April 2021

Sets the current rendering color for shapes and text.

This function can only be called from inside OnRender event!

Syntax

d3d.SetColor(r, g, b[, a])
  • r, g, b: number (0-255)
  • a: number (0-255 Opacity, optional - default = 255)

Related Pages