Difference between revisions of "D3d.SetColor"

From Nomad DB
(Created page with "Sets the current rendering color for shapes and text. {{Warning: This function can only be called from inside OnRender event!}} == Syntax == <synt...")
 
Line 1: Line 1:
 
Sets the current rendering color for shapes and text.
 
Sets the current rendering color for shapes and text.
  
{{Warning: This function can only be called from inside [[Event: Script:OnRender|OnRender]] event!}}
+
{{Warning|This function can only be called from inside [[Event: Script:OnRender|OnRender]] event!}}
  
 
== Syntax ==
 
== Syntax ==

Revision as of 22:13, 2 August 2020

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