Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string.
Name | Type | Attribute | Description |
---|---|---|---|
color |
{ "comment": "/**\n * Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string.\n *\n * @param {number|number[]} color\n * @return {string} The color as a string.\n */", "meta": { "range": [ 12821, 13116 ], "filename": "TextStyle.js", "lineno": 486, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\text", "code": { "id": "astnode100041082", "name": "getSingleColor", "type": "FunctionDeclaration", "paramnames": [ "color" ] }, "vars": { "color": "getSingleColor~color" } }, "description": "Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string.
", "params": [ { "type": { "names": [ "number", "Array." ] }, "name": "color" } ], "returns": [ { "type": { "names": [ "string" ] }, "description": " The color as a string.
" } ], "name": "getSingleColor", "longname": "getSingleColor", "kind": "function", "scope": "global", "___id": "T000002R003776", "___s": true, "filepath": "core\\text\\TextStyle.js" }