Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/colormath/src/utils.ts>breakHex

A color conversion and color manipulation library written in typescript for Node.js, Deno and Browser 🎨.
Latest
function breakHex
import { breakHex } from "https://deno.land/x/colormath@1.2.4/src/utils.ts";

Breaks down a raw hex into [r, g, b].

Examples

breakHex('ffffff'); // [255, 255, 255]

Parameters

hex: string

The hex.

Returns

number[]