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

x/imagescript/ImageScript.js>Image.rgbaToHSLA

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

Converts an RGBA value to an array of HSLA values

Parameters

r

{number} (0..255)

g

{number} (0..255)

b

{number} (0..255)

a

{number} (0..255)