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

x/colormath/mod.ts>randomHex

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

Returns a random color in the form of formatted hex.

Examples

randomHex(); // '#01060e'

Returns

string