Home

function: getColor


getColor(color: number, Array.<number>): string

Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string.
This version can also convert array of colors

Params:

Name Type Attribute Description
color

Returns:

string

  {
    "comment": "/**\n * Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string.\n * This version can also convert array of colors\n *\n * @param {number|number[]} color\n * @return {string} The color as a string.\n */",
    "meta": {
        "range": [
            13363,
            13632
        ],
        "filename": "TextStyle.js",
        "lineno": 510,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\text",
        "code": {
            "id": "astnode100041122",
            "name": "getColor",
            "type": "FunctionDeclaration",
            "paramnames": [
                "color"
            ]
        },
        "vars": {
            "i": "getColor~i",
            "color[undefined]": null
        }
    },
    "description": "

Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string.
This version can also convert array of colors

", "params": [ { "type": { "names": [ "number", "Array." ] }, "name": "color" } ], "returns": [ { "type": { "names": [ "string" ] }, "description": "

The color as a string.

" } ], "name": "getColor", "longname": "getColor", "kind": "function", "scope": "global", "___id": "T000002R003778", "___s": true, "filepath": "core\\text\\TextStyle.js" }