Class Int32<T>Abstract

Type Parameters

Hierarchy (view full)

Implements

Indexable

[id: number]: number

Constructors

Properties

buf: NumericArray

Backing array / memory

offset: number = 0

Start index in array

stride: number = 1

Step size between channels

value: number

Accessors

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

    Returns [ReadonlyVec, ReadonlyVec]

    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.

Methods

  • Returns true if this value equals o with optional allowance for given tolerance eps.

    Parameters

    • o: T

      2nd value to test

    • Optional eps: number

      tolerance (usually defaults to DEFAULT_EPS)

    Returns boolean

  • Randomizes all color channels based on channel ranges defined for this color type (usually [0..1] interval). Alpha channel will remain untouched.

    Parameters

    • rnd: IRandom = SYSTEM

    Returns this

Generated using TypeDoc