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

x/imagescript/ImageScript.js>Image#opacity

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

Sets the images opacity

Parameters

opacity

The opacity to apply (0..1)

optional
absolute = [UNSUPPORTED]

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