getName MethodStatic
Obtain the name of the color in the ColorByName list associated with the specified 0xTTBBGGRR value, or undefined if no such named color exists.
getName(tbgr: number): undefined | string
note A handful of colors (like "aqua" and "cyan") have identical tbgr values; in such cases the first match will be returned.
Parameter | Type | Description |
---|---|---|
tbgr | number |
Returns - undefined | string
Defined in
- core/common/src/ColorDef.ts Line 357
Last Updated: 20 June, 2023