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

x/colormath/src/utils.ts>random

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

Returns a random rgb color in the form of [r, g, b] array.

Examples

random(); // [23, 33, 90]

Returns

number[]