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

x/imagescript/mod.ts>Image#lightness

zero-dependency JavaScript image manipulation
Extremely Popular
Go to Latest
method Image.prototype.lightness
import { Image } from "https://deno.land/x/imagescript@v1.2.14/mod.ts";

Sets the brightness of the image

Parameters

value

The lightness to apply (0..1)

optional
absolute = [UNSUPPORTED]

Whether to scale the current lightness (false) or just set the new lightness (true)