Difference between revisions of "Color255"

From Valve Developer Community
Jump to: navigation, search
m (Reverted edit of ElcamOnbas, changed back to last version by JeffLane)
(Note for use of Light Intensities)
Line 13: Line 13:
 
:Orange = "<code>255 128 0</code>"
 
:Orange = "<code>255 128 0</code>"
  
Hammer allows for [[integer]]s (possibly [[string]]s and [[real |float]]s too) to be appended to the color255.  This is used by light entities to store their brightness.
+
{{note|Light entities use [[Color255]] to represent color, followed by an '''[[integer]]''' for intensity.<br>'''Example: <code>"255 255 255 5000"</code>'''}}
  
 
[[Category:Variables]]
 
[[Category:Variables]]
 
[[Category:Glossary]]
 
[[Category:Glossary]]

Revision as of 09:55, 26 July 2009

Note:This is not a C++ variable.

A string of three bytes (0-255) separated by spaces: RED GREEN BLUE

Examples

Red = "255 0 0"
Green = "0 255 0"
Blue = "0 0 255"
Orange = "255 128 0"
Note:Light entities use Color255 to represent color, followed by an integer for intensity.
Example: "255 255 255 5000"