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 15 of file Color.class.php.
Color::__construct | ( | $ | rgb | ) |
Definition at line 39 of file Color.class.php.
References Assert::isTrue().
static Color::create | ( | $ | rgb | ) | [static] |
Definition at line 24 of file Color.class.php.
Color::getBlue | ( | ) |
Definition at line 96 of file Color.class.php.
Referenced by TuringImage::getColorIdentifier(), and invertColor().
Color::getGreen | ( | ) |
Definition at line 81 of file Color.class.php.
Referenced by TuringImage::getColorIdentifier(), and invertColor().
Color::getRed | ( | ) |
Definition at line 66 of file Color.class.php.
Referenced by TuringImage::getColorIdentifier(), and invertColor().
Color::invertColor | ( | ) |
Definition at line 104 of file Color.class.php.
References getBlue(), getGreen(), getRed(), setBlue(), setGreen(), and setRed().
Color::setBlue | ( | $ | blue | ) |
Definition at line 89 of file Color.class.php.
References $blue.
Referenced by invertColor().
Color::setGreen | ( | $ | green | ) |
Definition at line 74 of file Color.class.php.
References $green.
Referenced by invertColor().
Color::setRed | ( | $ | red | ) |
Definition at line 59 of file Color.class.php.
References $red.
Referenced by invertColor().
Color::toString | ( | ) |
Implements Stringable.
Definition at line 113 of file Color.class.php.
Color::$blue = 0 [private] |
Definition at line 19 of file Color.class.php.
Referenced by setBlue().
Color::$green = 0 [private] |
Definition at line 18 of file Color.class.php.
Referenced by setGreen().
Color::$red = 0 [private] |
Definition at line 17 of file Color.class.php.
Referenced by setRed().