Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Indexable

[id: number]: number

Index

Constructors

constructor

  • new ABGR(buf?: NumericArray, offset?: number, stride?: number): ABGR

Properties

buf

buf: NumericArray

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(x: number): void

b

  • get b(): number
  • set b(x: number): void

g

  • get g(): number
  • set g(x: number): void

length

  • get length(): number

mode

r

  • get r(): number
  • set r(x: number): void

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

[iterator]

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

clamp

copy

copyView

deref

  • deref(): number[]

empty

eqDelta

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

randomize

  • randomize(rnd?: IRandom): ABGR

set

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

toJSON

  • toJSON(): number[]

Generated using TypeDoc