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

x/imagescript/ImageScript.js>Image.rgbToColor

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

Converts RGB components to an RGBA value (assuming alpha = 255)

Parameters

r

red (0..255)

g

green (0..255)

b

blue (0..255)