Color.getWebRGB()

<static> getWebRGB(color) → {string}

Returns a CSS friendly string value from the given color.

Parameters
Name Type Description
color number | Object

Color in RGB (0xRRGGBB), ARGB format (0xAARRGGBB) or an Object with r, g, b, a properties.

Returns
string -

A string in the format: 'rgba(r,g,b,a)'

Source code: utils/Color.js (Line 908)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.