![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
Abstract base class for representing a color with operations for modification and interpolation. More...
#include <Color.h>
Public Member Functions | |
| virtual | Color (T R, T G, T B)=0 |
| Constructor to initialize a color with red, green, and blue components. | |
| virtual | ~Color () |
| Virtual destructor. | |
| virtual void | SetColor (T R, T G, T B)=0 |
| Sets the color using red, green, and blue components. | |
| virtual Color | Scale (T maxBrightness)=0 |
| Scales the color brightness to a maximum brightness level. | |
| virtual Color | Add (T value)=0 |
| Adds a constant value to all color channels. | |
| virtual Color | HueShift (float hueDeg)=0 |
| Shifts the hue of the color by a specified angle. | |
| 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. | |
Abstract base class for representing a color with operations for modification and interpolation.
| T | Data type for the color channels (e.g., uint8_t, float). |
Constructor to initialize a color with red, green, and blue components.
| R | The red component of the color. |
| G | The green component of the color. |
| B | The blue component of the color. |
Adds a constant value to all color channels.
| value | The value to add to each channel. |
Shifts the hue of the color by a specified angle.
| hueDeg | The hue shift in degrees. |
Scales the color brightness to a maximum brightness level.
| maxBrightness | The maximum brightness value. |
Sets the color using red, green, and blue components.
| R | The red component of the color. |
| G | The green component of the color. |
| B | The blue component of the color. |
Converts the color to a string representation.