Color255: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (smokestak1)
(undone multipage)
 
(37 intermediate revisions by 22 users not shown)
Line 1: Line 1:
[[category:Variables]][[Category:Glossary]](not a c++ variable)
{{LanguageBar}}
{{note|This is 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>


give env_Smokestack1
== Examples ==
ent_fire env_smokestack addoutput "classname smoky"
:Red = "<code>255 0 0</code>"
ent_Fire smoky addoutput "basespread 50"
 
ent_Fire smoky addoutput "spreadspeed 50"
:Green = "<code>0 255 0</code>"
ent_Fire smoky addoutput "initialstate 1"
 
ent_Fire smoky addoutput "speed 300"
:Blue = "<code>0 0 255</code>"
ent_Fire smoky addoutput "startsize 25"
 
ent_Fire smoky addoutput "endsize 30"
:Orange = "<code>255 128 0</code>"
ent_Fire smoky addoutput "rate 20"
 
ent_Fire smoky addoutput "jetlength 500"
{{note|Light entities use Color255 to represent color, followed by an '''[[integer]]''' for intensity.<br>'''Example: <code>"255 255 255 5000"</code>'''}}
ent_Fire smoky addoutput "twist 200"
 
ent_Fire smoky addoutput "angles 10 0 0"
== See also ==
ent_Fire smoky addoutput "rendermode 2"
* [[Color1]]
ent_Fire smoky addoutput "renderamt 255"
 
ent_fire smoky addoutput "rendermode 1"
== External links ==
ent_Fire smoky addoutput "rendercolor 125 80 51"
* [https://www.w3schools.com/colors/colors_rgb.asp W3 Schoools Colors RGB and RGBA]
ent_Fire smoky addoutput "smokematerial effects/blueblackflash.vmt"
 
ent_fire smoky turnon
[[Category:Variables]]
ent_fire smoky setparent !activator
[[Category:Glossary]]

Latest revision as of 06:07, 13 July 2024

English (en)Deutsch (de)Hrvatski (hr)Русский (ru)中文 (zh)Translate (Translate)
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"
Note.pngNote:Light entities use Color255 to represent color, followed by an integer for intensity.
Example: "255 255 255 5000"

See also

External links