Functions

f
hexToRgb

Hex (#rrggbb) to RGB; returns null if invalid.

f
rgbToHex

RGB to hex (#rrggbb).

Usage

import * as mod from "sgr/helper.ts";