Converts a hex color number to an [R, G, B] array
| Name | Type | Attribute | Description |
|---|---|---|---|
| hex | The number to convert |
||
| out | If supplied, this array will be used rather than returning a new one |
{
"comment": "/**\n * Converts a hex color number to an [R, G, B] array\n *\n * @memberof PIXI.utils\n * @function hex2rgb\n * @param {number} hex - The number to convert\n * @param {number[]} [out=[]] If supplied, this array will be used rather than returning a new one\n * @return {number[]} An array representing the [R, G, B] of the color.\n */",
"meta": {
"range": [
1031,
1358
],
"filename": "index.js",
"lineno": 52,
"path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\utils",
"code": {}
},
"description": "Converts a hex color number to an [R, G, B] array
",
"memberof": "PIXI.utils",
"kind": "function",
"name": "hex2rgb",
"params": [
{
"type": {
"names": [
"number"
]
},
"description": "The number to convert
",
"name": "hex"
},
{
"type": {
"names": [
"Array."
]
},
"optional": true,
"defaultvalue": "[]",
"description": "If supplied, this array will be used rather than returning a new one
",
"name": "out"
}
],
"returns": [
{
"type": {
"names": [
"Array."
]
},
"description": "An array representing the [R, G, B] of the color.
"
}
],
"scope": "static",
"longname": "PIXI.utils.hex2rgb",
"___id": "T000002R004348",
"___s": true,
"filepath": "core\\utils\\index.js"
}