Documentation / @ripl/core / rgbChannelToHEX
Function: rgbChannelToHEX() ​
rgbChannelToHEX(
channel):string
Defined in: packages/core/src/color/serialisers.ts:27
Converts a single RGB channel value (0–255) to a two-character hexadecimal string.
Parameters ​
| Parameter | Type |
|---|---|
channel | number |
Returns ​
string