Skip to main content
Module

x/colormath/mod.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/mod.ts";

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

Examples

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

Returns

number[]