Skip to main content
Module

x/imagescript/ImageScript.js>Image#red

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

Sets the red channels saturation

Parameters

saturation

The saturation to apply (0..1)

optional
absolute = [UNSUPPORTED]

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