Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Oklab

Implements

Indexable

[id: number]: number

Index

Constructors

constructor

Properties

a

a: number

alpha

alpha: number

b

b: number

buf

buf: NumericArray

Backing array / memory

l

l: number

Readonly length

length: 4

Readonly mode

mode: "oklab"

offset

offset: number

Start index in array

Readonly range

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.

stride

stride: number

Step size between channels

Methods

[iterator]

  • [iterator](): Iterator<number, any, undefined>

clamp

copy

copyView

deref

  • deref(): Vec

empty

eqDelta

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

randomize

  • randomize(rnd?: IRandom): Oklab

set

  • set(src: ReadonlyVec): Oklab

toJSON

  • toJSON(): number[]

Generated using TypeDoc