Value types for the constructor of PIXI.Color. These types are extended from colord with some PixiJS-specific extensions.
Possible value types are:
'red'
'green'
'blue'
'white'
0xRRGGBB
0xff0000
0x00ff00
0x0000ff
RRGGBB
'ff0000'
'#00ff00'
'0x0000ff'
RGB
'f00'
'#0f0'
'0x00f'
RRGGBBAA
'ff000080'
'#00ff0080'
'0x0000ff80'
RGBA
'f008'
'#0f08'
'0x00f8'
{ r: 255, g: 0, b: 0 }
{ r: 255, g: 0, b: 0, a: 0.5 }
'rgb(255, 0, 0)'
'rgb(100% 0% 0%)'
'rgba(255, 0, 0, 0.5)'
'rgba(100% 0% 0% / 50%)'
[1, 0, 0]
[1, 0, 0, 0.5]
new Float32Array([1, 0, 0])
new Float32Array([1, 0, 0, 0.5])
new Uint8Array([255, 0, 0])
new Uint8Array([255, 0, 0, 128])
new Uint8ClampedArray([255, 0, 0])
new Uint8ClampedArray([255, 0, 0, 128])
{ h: 0, s: 100, l: 50 }
{ h: 0, s: 100, l: 50, a: 0.5 }
'hsl(0, 100%, 50%)'
'hsl(0deg 100% 50%)'
'hsla(0, 100%, 50%, 0.5)'
'hsla(0deg 100% 50% / 50%)'
{ h: 0, s: 100, v: 100 }
{ h: 0, s: 100, v: 100, a: 0.5 }
PIXI
7.2.0
Value types for the constructor of PIXI.Color. These types are extended from colord with some PixiJS-specific extensions.
Possible value types are:
'red','green','blue','white', etc.0xRRGGBB):0xff0000,0x00ff00,0x0000ff, etc.RRGGBB):'ff0000','#00ff00','0x0000ff', etc.RGB):'f00','#0f0','0x00f', etc.RRGGBBAA):'ff000080','#00ff0080','0x0000ff80', etc.RGBA):'f008','#0f08','0x00f8', etc.{ r: 255, g: 0, b: 0 },{ r: 255, g: 0, b: 0, a: 0.5 }, etc.'rgb(255, 0, 0)','rgb(100% 0% 0%)','rgba(255, 0, 0, 0.5)','rgba(100% 0% 0% / 50%)', etc.[1, 0, 0],[1, 0, 0, 0.5], etc.new Float32Array([1, 0, 0]),new Float32Array([1, 0, 0, 0.5]), etc.new Uint8Array([255, 0, 0]),new Uint8Array([255, 0, 0, 128]), etc.new Uint8ClampedArray([255, 0, 0]),new Uint8ClampedArray([255, 0, 0, 128]), etc.{ h: 0, s: 100, l: 50 },{ h: 0, s: 100, l: 50, a: 0.5 }, etc.'hsl(0, 100%, 50%)','hsl(0deg 100% 50%)','hsla(0, 100%, 50%, 0.5)','hsla(0deg 100% 50% / 50%)', etc.{ h: 0, s: 100, v: 100 },{ h: 0, s: 100, v: 100, a: 0.5 }, etc.