Color

Chameleon\Colors\Color

Class Color

Base implementation of IColor

  • Class name: Color
  • Namespace: Chameleon\Colors
  • Fully qualified class name: Chameleon\Colors\Color
  • This class is abstract
  • Implements: Chameleon\Colors\IColor

    Methods

    fromRGBA()

    void IColor::fromRGBA(RGBAColor $color)

Construct from an RGBAColor


getRGBA()

RGBAColor IColor::getRGBA()

Get the RGBA representation of the color


lighten()

IColor IColor::lighten(float $percentage)

Make the color lighter


darken()

IColor IColor::darken(float $percentage)

Make the color darker


__toString()

string IColor::__toString()

Return a string representation of the color.


getInt()

integer IColor::getInt()

Return the integer value of this color.


convertTo()

IColor Color::convertTo(string $class)

Convert a color to another color system.

Arguments

  • $class string - <p>The new color's FQCN, e.g. HSLColor::class</p>

transparent()

mixed Color::transparent()

transparent

  • static

    Arguments

    None.


aliceBlue()

mixed Color::aliceBlue()

aliceBlue

  • static

    Arguments

    None.


antiqueWhite()

mixed Color::antiqueWhite()

antiqueWhite

  • static

    Arguments

    None.


aqua()

mixed Color::aqua()

aqua

  • static

    Arguments

    None.


aquamarine()

mixed Color::aquamarine()

aquamarine

  • static

    Arguments

    None.


azure()

mixed Color::azure()

azure

  • static

    Arguments

    None.


beige()

mixed Color::beige()

beige

  • static

    Arguments

    None.


bisque()

mixed Color::bisque()

bisque

  • static

    Arguments

    None.


black()

mixed Color::black()

black

  • static

    Arguments

    None.


blanchedAlmond()

mixed Color::blanchedAlmond()

blanchedAlmond

  • static

    Arguments

    None.


blue()

mixed Color::blue()

blue

  • static

    Arguments

    None.


blueViolet()

mixed Color::blueViolet()

blueViolet

  • static

    Arguments

    None.


brown()

mixed Color::brown()

brown

  • static

    Arguments

    None.


burlyWood()

mixed Color::burlyWood()

burlyWood

  • static

    Arguments

    None.


cadetBlue()

mixed Color::cadetBlue()

cadetBlue

  • static

    Arguments

    None.


chartreuse()

mixed Color::chartreuse()

chartreuse

  • static

    Arguments

    None.


chocolate()

mixed Color::chocolate()

chocolate

  • static

    Arguments

    None.


coral()

mixed Color::coral()

coral

  • static

    Arguments

    None.


cornflowerBlue()

mixed Color::cornflowerBlue()

cornflowerBlue

  • static

    Arguments

    None.


cornsilk()

mixed Color::cornsilk()

cornsilk

  • static

    Arguments

    None.


crimson()

mixed Color::crimson()

crimson

  • static

    Arguments

    None.


cyan()

mixed Color::cyan()

cyan

  • static

    Arguments

    None.


darkBlue()

mixed Color::darkBlue()

darkBlue

  • static

    Arguments

    None.


darkCyan()

mixed Color::darkCyan()

darkCyan

  • static

    Arguments

    None.


darkGoldenRod()

mixed Color::darkGoldenRod()

darkGoldenRod

  • static

    Arguments

    None.


darkGray()

mixed Color::darkGray()

darkGray

  • static

    Arguments

    None.


darkGrey()

mixed Color::darkGrey()

darkGrey

  • static

    Arguments

    None.


darkGreen()

mixed Color::darkGreen()

darkGreen

  • static

    Arguments

    None.


darkKhaki()

mixed Color::darkKhaki()

darkKhaki

  • static

    Arguments

    None.


darkMagenta()

mixed Color::darkMagenta()

darkMagenta

  • static

    Arguments

    None.


darkOliveGreen()

mixed Color::darkOliveGreen()

darkOliveGreen

  • static

    Arguments

    None.


darkOrange()

mixed Color::darkOrange()

darkOrange

  • static

    Arguments

    None.


darkOrchid()

mixed Color::darkOrchid()

darkOrchid

  • static

    Arguments

    None.


darkRed()

mixed Color::darkRed()

darkRed

  • static

    Arguments

    None.


darkSalmon()

mixed Color::darkSalmon()

darkSalmon

  • static

    Arguments

    None.


darkSeaGreen()

mixed Color::darkSeaGreen()

darkSeaGreen

  • static

    Arguments

    None.


darkSlateBlue()

mixed Color::darkSlateBlue()

darkSlateBlue

  • static

    Arguments

    None.


darkSlateGray()

mixed Color::darkSlateGray()

darkSlateGray

  • static

    Arguments

    None.


darkSlateGrey()

mixed Color::darkSlateGrey()

darkSlateGrey

  • static

    Arguments

    None.


darkTurquoise()

mixed Color::darkTurquoise()

darkTurquoise

  • static

    Arguments

    None.


darkViolet()

mixed Color::darkViolet()

darkViolet

  • static

    Arguments

    None.


deepPink()

mixed Color::deepPink()

deepPink

  • static

    Arguments

    None.


deepSkyBlue()

mixed Color::deepSkyBlue()

deepSkyBlue

  • static

    Arguments

    None.


dimGray()

mixed Color::dimGray()

dimGray

  • static

    Arguments

    None.


dimGrey()

mixed Color::dimGrey()

dimGrey

  • static

    Arguments

    None.


dodgerBlue()

mixed Color::dodgerBlue()

dodgerBlue

  • static

    Arguments

    None.


fireBrick()

mixed Color::fireBrick()

fireBrick

  • static

    Arguments

    None.


floralWhite()

mixed Color::floralWhite()

floralWhite

  • static

    Arguments

    None.


forestGreen()

mixed Color::forestGreen()

forestGreen

  • static

    Arguments

    None.


fuchsia()

mixed Color::fuchsia()

fuchsia

  • static

    Arguments

    None.


gainsboro()

mixed Color::gainsboro()

gainsboro

  • static

    Arguments

    None.


ghostWhite()

mixed Color::ghostWhite()

ghostWhite

  • static

    Arguments

    None.


gold()

mixed Color::gold()

gold

  • static

    Arguments

    None.


goldenRod()

mixed Color::goldenRod()

goldenRod

  • static

    Arguments

    None.


gray()

mixed Color::gray()

gray

  • static

    Arguments

    None.


grey()

mixed Color::grey()

grey

  • static

    Arguments

    None.


green()

mixed Color::green()

green

  • static

    Arguments

    None.


greenYellow()

mixed Color::greenYellow()

greenYellow

  • static

    Arguments

    None.


honeyDew()

mixed Color::honeyDew()

honeyDew

  • static

    Arguments

    None.


hotPink()

mixed Color::hotPink()

hotPink

  • static

    Arguments

    None.


indianRed()

mixed Color::indianRed()

indianRed

  • static

    Arguments

    None.


indigo()

mixed Color::indigo()

indigo

  • static

    Arguments

    None.


ivory()

mixed Color::ivory()

ivory

  • static

    Arguments

    None.


khaki()

mixed Color::khaki()

khaki

  • static

    Arguments

    None.


lavender()

mixed Color::lavender()

lavender

  • static

    Arguments

    None.


lavenderBlush()

mixed Color::lavenderBlush()

lavenderBlush

  • static

    Arguments

    None.


lawnGreen()

mixed Color::lawnGreen()

lawnGreen

  • static

    Arguments

    None.


lemonChiffon()

mixed Color::lemonChiffon()

lemonChiffon

  • static

    Arguments

    None.


lightBlue()

mixed Color::lightBlue()

lightBlue

  • static

    Arguments

    None.


lightCoral()

mixed Color::lightCoral()

lightCoral

  • static

    Arguments

    None.


lightCyan()

mixed Color::lightCyan()

lightCyan

  • static

    Arguments

    None.


lightGoldenRodYellow()

mixed Color::lightGoldenRodYellow()

lightGoldenRodYellow

  • static

    Arguments

    None.


lightGray()

mixed Color::lightGray()

lightGray

  • static

    Arguments

    None.


lightGrey()

mixed Color::lightGrey()

lightGrey

  • static

    Arguments

    None.


lightGreen()

mixed Color::lightGreen()

lightGreen

  • static

    Arguments

    None.


lightPink()

mixed Color::lightPink()

lightPink

  • static

    Arguments

    None.


lightSalmon()

mixed Color::lightSalmon()

lightSalmon

  • static

    Arguments

    None.


lightSeaGreen()

mixed Color::lightSeaGreen()

lightSeaGreen

  • static

    Arguments

    None.


lightSkyBlue()

mixed Color::lightSkyBlue()

lightSkyBlue

  • static

    Arguments

    None.


lightSlateGray()

mixed Color::lightSlateGray()

lightSlateGray

  • static

    Arguments

    None.


lightSlateGrey()

mixed Color::lightSlateGrey()

lightSlateGrey

  • static

    Arguments

    None.


lightSteelBlue()

mixed Color::lightSteelBlue()

lightSteelBlue

  • static

    Arguments

    None.


lightYellow()

mixed Color::lightYellow()

lightYellow

  • static

    Arguments

    None.


lime()

mixed Color::lime()

lime

  • static

    Arguments

    None.


limeGreen()

mixed Color::limeGreen()

limeGreen

  • static

    Arguments

    None.


linen()

mixed Color::linen()

linen

  • static

    Arguments

    None.


magenta()

mixed Color::magenta()

magenta

  • static

    Arguments

    None.


maroon()

mixed Color::maroon()

maroon

  • static

    Arguments

    None.


mediumAquaMarine()

mixed Color::mediumAquaMarine()

mediumAquaMarine

  • static

    Arguments

    None.


mediumBlue()

mixed Color::mediumBlue()

mediumBlue

  • static

    Arguments

    None.


mediumOrchid()

mixed Color::mediumOrchid()

mediumOrchid

  • static

    Arguments

    None.


mediumPurple()

mixed Color::mediumPurple()

mediumPurple

  • static

    Arguments

    None.


mediumSeaGreen()

mixed Color::mediumSeaGreen()

mediumSeaGreen

  • static

    Arguments

    None.


mediumSlateBlue()

mixed Color::mediumSlateBlue()

mediumSlateBlue

  • static

    Arguments

    None.


mediumSpringGreen()

mixed Color::mediumSpringGreen()

mediumSpringGreen

  • static

    Arguments

    None.


mediumTurquoise()

mixed Color::mediumTurquoise()

mediumTurquoise

  • static

    Arguments

    None.


mediumVioletRed()

mixed Color::mediumVioletRed()

mediumVioletRed

  • static

    Arguments

    None.


midnightBlue()

mixed Color::midnightBlue()

midnightBlue

  • static

    Arguments

    None.


mintCream()

mixed Color::mintCream()

mintCream

  • static

    Arguments

    None.


mistyRose()

mixed Color::mistyRose()

mistyRose

  • static

    Arguments

    None.


moccasin()

mixed Color::moccasin()

moccasin

  • static

    Arguments

    None.


mixed Color::navajoWhite()

navajoWhite

  • static

    Arguments

    None.


mixed Color::navy()

navy

  • static

    Arguments

    None.


oldLace()

mixed Color::oldLace()

oldLace

  • static

    Arguments

    None.


olive()

mixed Color::olive()

olive

  • static

    Arguments

    None.


oliveDrab()

mixed Color::oliveDrab()

oliveDrab

  • static

    Arguments

    None.


orange()

mixed Color::orange()

orange

  • static

    Arguments

    None.


orangeRed()

mixed Color::orangeRed()

orangeRed

  • static

    Arguments

    None.


orchid()

mixed Color::orchid()

orchid

  • static

    Arguments

    None.


paleGoldenRod()

mixed Color::paleGoldenRod()

paleGoldenRod

  • static

    Arguments

    None.


paleGreen()

mixed Color::paleGreen()

paleGreen

  • static

    Arguments

    None.


paleTurquoise()

mixed Color::paleTurquoise()

paleTurquoise

  • static

    Arguments

    None.


paleVioletRed()

mixed Color::paleVioletRed()

paleVioletRed

  • static

    Arguments

    None.


papayaWhip()

mixed Color::papayaWhip()

papayaWhip

  • static

    Arguments

    None.


peachPuff()

mixed Color::peachPuff()

peachPuff

  • static

    Arguments

    None.


peru()

mixed Color::peru()

peru

  • static

    Arguments

    None.


pink()

mixed Color::pink()

pink

  • static

    Arguments

    None.


plum()

mixed Color::plum()

plum

  • static

    Arguments

    None.


powderBlue()

mixed Color::powderBlue()

powderBlue

  • static

    Arguments

    None.


purple()

mixed Color::purple()

purple

  • static

    Arguments

    None.


rebeccaPurple()

mixed Color::rebeccaPurple()

rebeccaPurple

  • static

    Arguments

    None.


red()

mixed Color::red()

red

  • static

    Arguments

    None.


rosyBrown()

mixed Color::rosyBrown()

rosyBrown

  • static

    Arguments

    None.


royalBlue()

mixed Color::royalBlue()

royalBlue

  • static

    Arguments

    None.


saddleBrown()

mixed Color::saddleBrown()

saddleBrown

  • static

    Arguments

    None.


salmon()

mixed Color::salmon()

salmon

  • static

    Arguments

    None.


sandyBrown()

mixed Color::sandyBrown()

sandyBrown

  • static

    Arguments

    None.


seaGreen()

mixed Color::seaGreen()

seaGreen

  • static

    Arguments

    None.


seaShell()

mixed Color::seaShell()

seaShell

  • static

    Arguments

    None.


sienna()

mixed Color::sienna()

sienna

  • static

    Arguments

    None.


silver()

mixed Color::silver()

silver

  • static

    Arguments

    None.


skyBlue()

mixed Color::skyBlue()

skyBlue

  • static

    Arguments

    None.


slateBlue()

mixed Color::slateBlue()

slateBlue

  • static

    Arguments

    None.


slateGray()

mixed Color::slateGray()

slateGray

  • static

    Arguments

    None.


slateGrey()

mixed Color::slateGrey()

slateGrey

  • static

    Arguments

    None.


snow()

mixed Color::snow()

snow

  • static

    Arguments

    None.


springGreen()

mixed Color::springGreen()

springGreen

  • static

    Arguments

    None.


steelBlue()

mixed Color::steelBlue()

steelBlue

  • static

    Arguments

    None.


tan()

mixed Color::tan()

tan

  • static

    Arguments

    None.


teal()

mixed Color::teal()

teal

  • static

    Arguments

    None.


thistle()

mixed Color::thistle()

thistle

  • static

    Arguments

    None.


tomato()

mixed Color::tomato()

tomato

  • static

    Arguments

    None.


turquoise()

mixed Color::turquoise()

turquoise

  • static

    Arguments

    None.


violet()

mixed Color::violet()

violet

  • static

    Arguments

    None.


wheat()

mixed Color::wheat()

wheat

  • static

    Arguments

    None.


white()

mixed Color::white()

white

  • static

    Arguments

    None.


whiteSmoke()

mixed Color::whiteSmoke()

whiteSmoke

  • static

    Arguments

    None.


yellow()

mixed Color::yellow()

yellow

  • static

    Arguments

    None.


yellowGreen()

mixed Color::yellowGreen()

yellowGreen

  • static

    Arguments

    None.