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

x/colors/mod.ts>contrast

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

Get contrast ratio

Parameters

color1: Color4
color2: Color4

Returns

number