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

x/lume/deps/imagick.ts>MagickColor

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class MagickColor
Re-export
import { MagickColor } from "https://deno.land/x/lume@v1.18.5/deps/imagick.ts";

Constructors

new
MagickColor(color?: string)
new
MagickColor(
r: number,
g: number,
b: number,
)
new
MagickColor(
r: number,
g: number,
b: number,
a: number,
)
new
MagickColor(
c: number,
m: number,
y: number,
k: number,
a: number,
)
new
MagickColor(
colorOrRed?: string | number,
g?: number,
b?: number,
aOrK?: number,
a?: number,
)

Properties

private
_a: number
private
_b: number
private
_g: number
private
_isCmyk: boolean
private
_k: number
private
_r: number
a: number
b: number
g: number
readonly
isCmyk: boolean
k: number
r: number

Methods

private
initialize(instance: number)
private
toHex(value: number)
_use(func: (colorPtr: number) => void): void
toShortString(): string
toString(): string