Home

function: rgb2hex


rgb2hex(rgb: Array.<number>): number

Converts a color as an [R, G, B] array to a hex number

Params:

Name Type Attribute Description
rgb

rgb array

Returns:

number

  {
    "comment": "/**\n * Converts a color as an [R, G, B] array to a hex number\n *\n * @memberof PIXI.utils\n * @function rgb2hex\n * @param {number[]} rgb - rgb array\n * @return {number} The color number\n */",
    "meta": {
        "range": [
            1871,
            2058
        ],
        "filename": "index.js",
        "lineno": 88,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\utils",
        "code": {}
    },
    "description": "

Converts a color as an [R, G, B] array to a hex number

", "memberof": "PIXI.utils", "kind": "function", "name": "rgb2hex", "params": [ { "type": { "names": [ "Array." ] }, "description": "

rgb array

", "name": "rgb" } ], "returns": [ { "type": { "names": [ "number" ] }, "description": "

The color number

" } ], "scope": "static", "longname": "PIXI.utils.rgb2hex", "___id": "T000002R004360", "___s": true, "filepath": "core\\utils\\index.js" }