fromJSON MethodStatic
Create a new ColorDef from a json object. If the json object is a number, it is assumed to be a 0xTTBBGGRR value.
fromJSON(json?: number): ColorDef
Parameter | Type | Description |
---|---|---|
json | number |
Returns - ColorDef
Defined in
- core/common/src/ColorDef.ts Line 86
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.