Skip to main content
Module

x/colormath/mod.ts>invert

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

Returns the inverted color of the provided color value.

Parameters

color: ColorValue

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