UIColor.rgb()
Creates a UIColor from sRGB values, converting to OKLCH internally.
static rgb(r: number, g: number, b: number, alpha?: number): UIColor;
Parameters
- r — Red, 0-255.
- g — Green, 0-255.
- b — Blue, 0-255.
- alpha — Alpha, 0-1 (default 1).
Related
class UIColor
A class that represents a single color value.
