Private _sourcePrivate _tryPrivate
Optional color: stringColor value to parse
Returns source of this color (where source is an array representation; ex: [200, 200, 100, 1])
Sets source of this color (where source is an array representation; ex: [200, 200, 100, 1])
Static fromStatic fromStatic fromStatic fromStatic fromStatic sourceReturns array representation (ex: [100, 100, 200, 1]) of a color that's in HEX format
ex: FF5555 or FF5544CC (RGBa)
source
Color
Static sourceReturns array representation (ex: [100, 100, 200, 1]) of a color that's in HSL or HSLA format. Adapted from https://github.com/mjijackson
Color value ex: hsl(0-360,0%-100%,0%-100%) or hsla(0-360,0%-100%,0%-100%, 0-1)
source
Static sourceReturns array representation (ex: [100, 100, 200, 1]) of a color that's in RGB or RGBA format
Color value ex: rgb(0-255,0-255,0-255), rgb(0%-100%,0%-100%,0%-100%)
source
Color
Generated using TypeDoc
Tutorial
colors