Function: rgbToYuv()
rgbToYuv(
rgb):YUV
Converts RGB color values to YUV color space.
Parameters
| Parameter | Type | Description |
|---|---|---|
rgb | RGB | The RGB color to convert. |
Returns
The color in YUV color space.
Throws
If the input is not a valid RGB object or if RGB values are out of range.
Defined in
conversions/components/yuv.ts:44