Class "ColorModifier"⚓︎
An example mod using the ColorModifier class can be found here.
Info
You can get this class by using its constructor:
Example Code
1 | |
Constructors⚓︎
ColorModifier ()⚓︎
ColorModifier ColorModifier ( float R = 1, float G = 1, float B = 1, float A = 0, float Brightness = 0, float Contrast = 1 )⚓︎
Variables⚓︎
A⚓︎
float A⚓︎
Warning
This acts as a strength multiplier and must be non-zero in order for RGB to have any effect!
B⚓︎
float B⚓︎
Brightness⚓︎
float Brightness⚓︎
Contrast⚓︎
float Contrast⚓︎
G⚓︎
float G⚓︎
R⚓︎
float R⚓︎
Operators⚓︎
__add ()⚓︎
ColorModifier __add ( ColorModifier right )⚓︎
Defines the addition of two ColorModifier objects using the + operator.
__div ()⚓︎
ColorModifier __div ( ColorModifier right )⚓︎
Defines the division of a ColorModifier object and a float using the / operator. The ColorModifier must be on the left side.
__eq ()⚓︎
ColorModifier __eq ( ColorModifier right )⚓︎
Defines equal of two ColorModifier objects using the == operator.
__mul ()⚓︎
ColorModifier __mul ( ColorModifier right )⚓︎
Defines the multiplication of a ColorModifier object and a float using the * operator. The ColorModifier must be on the left side.
__sub ()⚓︎
ColorModifier __sub ( ColorModifier right )⚓︎
Defines the subtraction of two ColorModifier objects using the - operator.