Public Member Functions | |
__construct ($rgb) | |
setRed ($red) | |
| |
getRed () | |
setGreen ($green) | |
| |
getGreen () | |
setBlue ($blue) | |
| |
getBlue () | |
invertColor () | |
| |
toString () | |
Static Public Member Functions | |
static | create ($rgb) |
| |
Private Attributes | |
$red = 0 | |
$green = 0 | |
$blue = 0 |
Definition at line 16 of file Color.class.php.
Color::__construct | ( | $ | rgb | ) |
Definition at line 31 of file Color.class.php.
References Assert::isTrue().
static Color::create | ( | $ | rgb | ) | [static] |
Color::setRed | ( | $ | red | ) |
Definition at line 51 of file Color.class.php.
References $red.
Referenced by invertColor().
Color::getRed | ( | ) |
Color::setGreen | ( | $ | green | ) |
Definition at line 66 of file Color.class.php.
References $green.
Referenced by invertColor().
Color::getGreen | ( | ) |
Color::setBlue | ( | $ | blue | ) |
Definition at line 81 of file Color.class.php.
References $blue.
Referenced by invertColor().
Color::getBlue | ( | ) |
Color::invertColor | ( | ) |
Definition at line 96 of file Color.class.php.
References getBlue(), getGreen(), getRed(), setBlue(), setGreen(), and setRed().
Color::toString | ( | ) |
Color::$red = 0 [private] |
Color::$green = 0 [private] |
Color::$blue = 0 [private] |