Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ColorMapContainer

A mapping from scalar values to colors.

Hierarchy

  • ColorMapContainer

Index

Constructors

Methods

Constructors

constructor

Methods

findClosestColor

  • findClosestColor(value: number): Color
  • Find the color in this map closest to the input scalar.

    The input value should be between 0 and 1. Zero maps to the first color in the list; one to the last. Intermediate values map linearly. Out-of-bounds values are clamped.

    Parameters

    • value: number

    Returns Color

Generated using TypeDoc