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

x/colors/src/mod.ts>grayscale

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

Convert RGBA to grayscale using luminance

Alternatively use average() or lightness()