Math colorblend: Difference between revisions
Jump to navigation
Jump to search

Note:The following entities can accept color255 inputs: env_sun, env_lightglow, env_beam, env_fog_controller, env_sprite, light_dynamic, shadow_control, as well as any entity which uses rendercolor.
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
(-cleanup) |
||
Line 1: | Line 1: | ||
{{LanguageBar}} | |||
__NOTOC__ | __NOTOC__ | ||
{{Source topicon}} | {{Source topicon}} | ||
{{CD|CMathColorBlend|file1=logicentities.cpp}} | {{CD|CMathColorBlend|file1=logicentities.cpp}} | ||
{{this is a|point entity|name=math_colorblend}} It is used to create a blend between two colors for controlling the color of another entity. | {{this is a|point entity|name=math_colorblend}} It is used to create a blend between two colors for controlling the color of another entity. | ||
{{note|The following entities can accept [[color255]] inputs: [[env_sun]], [[env_lightglow]], [[env_beam]], [[env_fog_controller]], [[env_sprite]], [[light_dynamic]], [[shadow_control]], as well as any entity which uses rendercolor.}} | {{note|The following entities can accept [[color255]] inputs: [[env_sun]], [[env_lightglow]], [[env_beam]], [[env_fog_controller]], [[env_sprite]], [[light_dynamic]], [[shadow_control]], as well as any entity which uses rendercolor.}} | ||
== Keyvalues == | == Keyvalues == | ||
{{KV Targetname]1}} | |||
{{KV Targetname | {{KV|Minimum Valid Input Value|intn=inmin|integer|Input values below this value will be ignored.}} | ||
{{KV | {{KV|Maximum Valid Input Value|intn=inmax|integer|Input values above this value will be ignored.}} | ||
{{KV | {{KV|Output RGB color when input is min|intn=colormin|color255|When the input value is equal to 'Minimum Valid Input Value', this is the output RGB color.}} | ||
{{KV | {{KV|Output RGB color when input is max|intn=colormax|color255|When the input value is equal to 'Maximum Valid Input Value', this is the output RGB color.}} | ||
{{KV | |||
== | == Flags == | ||
{| | {{fl|1|Ignore out of range input values}} | ||
| | |||
== Inputs == | == Inputs == | ||
{ | {{IO|InValue|param=float|Input value and fire the output with the remapped value.}} | ||
| | |||
| Input value and fire the output with the remapped value. | |||
== | == Outputs == | ||
{{ | {{IO|OutColor|param=color255|Fired when the InValue input is received, with the remapped RGB color as the parameter}} |
Revision as of 11:53, 13 July 2024


![]() |
---|
CMathColorBlend |
![]() |
math_colorblend
is a point entity available in all Source games. It is used to create a blend between two colors for controlling the color of another entity.

Keyvalues
{{KV Targetname]1}}
- Minimum Valid Input Value (inmin) <integer>
- Input values below this value will be ignored.
- Maximum Valid Input Value (inmax) <integer>
- Input values above this value will be ignored.
- Output RGB color when input is min (colormin) <color255>
- When the input value is equal to 'Minimum Valid Input Value', this is the output RGB color.
- Output RGB color when input is max (colormax) <color255>
- When the input value is equal to 'Maximum Valid Input Value', this is the output RGB color.
Flags
- Ignore out of range input values : [1]
Inputs
- InValue <float >
- Input value and fire the output with the remapped value.
Outputs
- OutColor <color255 >
- Fired when the InValue input is received, with the remapped RGB color as the parameter