Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Indexable

[id: number]: number

Index

Constructors

constructor

  • new ARGB(buf?: number[] | TypedArray, offset?: number, stride?: number): ARGB

Properties

argb

argb: number

buf

buf: number[] | TypedArray

Backing array / memory

offset

offset: number = 0

Start index in array

stride

stride: number = 1

Step size between channels

value

value: number

Accessors

alpha

  • get alpha(): number
  • set alpha(a: number): void

length

  • get length(): number

mode

range

  • get range(): [ReadonlyVec, ReadonlyVec]
  • A tuple of [min, max] where both are vectors specifying the min/max channel ranges for this color type.

    remarks

    Even though there're several color spaces which do not impose limits on at least some of their axes, the limits returned by this function indicate RGB "safe" colors and were determined by projecting all RGB colors into the color space used by this type.

    Returns [ReadonlyVec, ReadonlyVec]

Methods

[Symbol.iterator]

  • [Symbol.iterator](): Generator<number, void, unknown>

clamp

copy

copyView

deref

  • deref(): number[]

empty

eqDelta

  • eqDelta(o: ARGB, eps?: number): boolean

randomize

  • randomize(rnd?: IRandom): ARGB

set

  • set(src: ArrayLikeIterable<number>): ARGB

toJSON

  • toJSON(): number[]

Generated using TypeDoc