math_colorblend

From Source Entities
Jump to navigation Jump to search

Code classes:

math_colorblend is a point entity present in all Source games. Given two colors, it outputs a medium color which is closer to one or the other based on the value of an input's parameter. Also accepts alpha values.

Flags[edit | edit source]

  • 1: Ignore out of range input values - If the input value is outside the min/max range, ignore that input entirely. Otherwise, OutColor will simply pass the min/max color when sent a value outside the input range.

Keyvalues[edit | edit source]

Minimum Valid Input Value (inmin) <float>
Lower limit for values received by InValue.
Maximum Valid Input Value (inmax) <float>
Upper limit for values received by InValue.
Output RGB color when input is min (colormin) <color255>
What color will be put out when the value from InValue is at Minimum Valid Input Value.
Output RGB color when input is max (colormax) <color255>
What color will be put out when the value from InValue is at Maximum Valid Input Value.

Inputs[edit | edit source]

InValue <float>
When given a value between Minimum Valid Input Value and Maximum Valid Input Value, this input will fire OutColor with a color between Output RGB color when input is min and Output RGB color when input is max.

Outputs[edit | edit source]

OutColor <color255>
Fires when InValue is sent. Automatically puts a color as the input parameter, unless overridden by the mapper.

See Also[edit | edit source]