Color255: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (revert, cleanup)
Line 1: Line 1:
chielbasricb
{{note|This is not a C++ variable.}}
[[category:Variables]][[Category:Glossary]](not a c++ variable)


A string of three [[byte]]s (0-255) separated by spaces:
A string of three [[byte]]s (0-255) separated by spaces:
<code>RED GREEN BLUE</code>
<code>RED GREEN BLUE</code>


===Examples:===
=== Examples ===
 
:Red = "<code>255 0 0</code>"
:Red = "<code>255 0 0</code>"


Line 16: Line 14:


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.
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.
[[category:Variables]]
[[Category:Glossary]]

Revision as of 00:48, 3 October 2007

Note.pngNote: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"

Hammer allows for integers (possibly strings and floats too) to be appended to the color255. This is used by light entities to store their brightness.