Skip to content
pixi-silk
GitHub repository
Function

hexToRgb

import { hexToRgb } from 'pixi-silk/ui/color';
function hexToRgb(hex: number): RGB;

0xRRGGBB to sRGB channels 0..1.

Parameters#

ParameterType
hexnumber

Returns#

RGB