from MethodStatic
Create a ColorDef from Red, Green, Blue, Transparency values. All inputs should be integers between 0-255.
from(red: number, green: number, blue: number, transparency?: number): ColorDef
Parameter | Type | Description |
---|---|---|
red | number | |
green | number | |
blue | number | |
transparency | number |
Returns - ColorDef
Defined in
- core/common/src/ColorDef.ts Line 91
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.