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

x/imagescript/v2/framebuffer.d.ts>Color

zero-dependency JavaScript image manipulation
Extremely Popular
Go to Latest
class Color
import { Color } from "https://deno.land/x/imagescript@v1.2.14/v2/framebuffer.d.ts";

Constructors

new
Color(color: string)

Properties

private
value: number
readonly
name: null | string
readonly
rgb: rgb
readonly
rgba: rgba

Methods

toJSON(): number
toString(radix?:
| "16"
| "hex"
| "rgb"
| "rgba"
): string
valueOf(): number

Static Methods

hsla(
h: number,
s: number,
l: number,
a: number,
): number
rgb(
r: number,
g: number,
b: number,
): number
rgba(
r: number,
g: number,
b: number,
a: number,
): number