28 virtual Color(T R, T G, T B) = 0;
Abstract base class for representing a color with operations for modification and interpolation.
virtual Color InterpolateColors(Color color1, Color color2, float ratio)=0
Interpolates between two colors based on a ratio.
virtual String ToString()=0
Converts the color to a string representation.
virtual Color Scale(T maxBrightness)=0
Scales the color brightness to a maximum brightness level.
virtual ~Color()
Virtual destructor.
virtual Color(T R, T G, T B)=0
Constructor to initialize a color with red, green, and blue components.
virtual void SetColor(T R, T G, T B)=0
Sets the color using red, green, and blue components.
virtual Color HueShift(float hueDeg)=0
Shifts the hue of the color by a specified angle.
virtual Color Add(T value)=0
Adds a constant value to all color channels.