#include <Color.h>
Public Member Functions | |
Color (void) | |
Color (int r, int g, int b, int a) | |
Color | operator- (void) const |
int | operator== (const Color &v) const |
int | operator!= (const Color &v) const |
Color | operator+ (const Color &v) const |
Color | operator- (const Color &v) const |
Color | operator * (double fl) const |
Color | operator/ (double fl) const |
Color | getRandomColor (void) |
Color | betrag (void) const |
|
creates Black Color with Alpha=0 |
|
creates Color with vales r,g,b and a for Alpha Channel |
|
returns Color that contains absolute values of the Channels from the given Color |
|
returns Color- and Alpha Channel Values |
|
multiplies every Color Channel and the Alpha Channel by Value of f1 |
|
compares two Colors and returns true, if not all of their Color Channels are equal |
|
adds two Colors (all Color Channels and Alpha Channel) |
|
subtracts two Colors (all Color Channels and Alpha Channel) |
|
multiplies every Color Channel and the Alpha Channel by -1 |
|
divides every Color Channel and the Alpha Channel by Value of f1 |
|
compares two Colors if all their Color Channels are equal |