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 358
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.