Math colorblend: Difference between revisions
Jump to navigation
Jump to search
DomliElrol (talk | contribs) No edit summary |
m (revert) |
||
Line 1: | Line 1: | ||
== Entity description == | |||
==Entity | |||
Used to create a blend between two colors for controlling the color of another entity. | Used to create a blend between two colors for controlling the color of another entity. | ||
==Keyvalues== | == Keyvalues == | ||
*{{kv targetname}} | *{{kv targetname}} | ||
*'''inmin''' | *'''inmin''' | ||
Line 15: | Line 13: | ||
:<color255> When the input value is equal to 'Maximum Valid Input Value', this is the output RGB color. | :<color255> When the input value is equal to 'Maximum Valid Input Value', this is the output RGB color. | ||
==Flags== | == Flags == | ||
* 1: Ignore out-of-range input values | * 1: Ignore out-of-range input values | ||
==Inputs== | == Inputs == | ||
*{{i targetname}} | *{{i targetname}} | ||
*'''InValue''' <float> Input value and fire the output with the remapped value. | *'''InValue''' <float> Input value and fire the output with the remapped value. | ||
==Outputs== | == Outputs == | ||
* {{o targetname}} | * {{o targetname}} | ||
* '''OutColor''' <[[color255]]> Fired when the InValue input is received, with the remapped RGB color as the parameter. | * '''OutColor''' <[[color255]]> Fired when the InValue input is received, with the remapped RGB color as the parameter. | ||
==Uses== | == Uses == | ||
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. | 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. | ||
[[category:Entities]] | [[category:Entities]] |
Revision as of 14:58, 24 November 2007
Entity description
Used to create a blend between two colors for controlling the color of another entity.
Keyvalues
- Template:Kv targetname
- inmin
- <integer> Input values below this value will be ignored.
- inmax
- <integer> Input values above this value will be ignored.
- colormin
- <color255> When the input value is equal to 'Minimum Valid Input Value', this is the output RGB color.
- colormax
- <color255> When the input value is equal to 'Maximum Valid Input Value', this is the output RGB color.
Flags
- 1: Ignore out-of-range input values
Inputs
- Template:I targetname
- InValue <float> Input value and fire the output with the remapped value.
Outputs
- Template:O targetname
- OutColor <color255> Fired when the InValue input is received, with the remapped RGB color as the parameter.
Uses
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.