Skip to main content
Module

x/colormath/mod.ts>desaturate

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

Desaturates a color.

Parameters

color: ColorValue

The [r, g, b] array or hex string.

optional
value: number

The desaturation amount. Value ranges from 0 to 100. Default value is 20.