Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/colors/mod.ts>min

Color conversion and stuff in TypeScript
Latest
function min
import { min } from "https://deno.land/x/colors@v2.0.2/mod.ts";

Get minimum of r, g, b, a, scaled to [0, 1].

Parameters

color: Color3 | Color4

An array of RGB or RGBA values.

Returns

number

The minimum value in the array scaled to [0, 1].