ScalarMapperContinuousDomain

class cee.ScalarMapperContinuousDomain()

Base class for scalar mappers that implement normalizedValue / domainValue

Constructors

Accessors

  • aboveRangeColor

  • belowRangeColor

  • undefinedColor


Constructors

ScalarMapperContinuousDomain.constructor()
Return type:

ScalarMapperContinuousDomain

Accessors

cee.aboveRangeColor()

The color to assign values that are above the given range.

Default is undefined, which indicates that the last color in the color array will be used.

Return type:

Color4Like

cee.aboveRangeColor(color)
Arguments:
Return type:

void

cee.belowRangeColor()

The color to assign values that are below the given range.

Default is undefined, which indicates that the first color in the color array will be used.

Return type:

Color4Like

cee.belowRangeColor(color)
Arguments:
Return type:

void

cee.undefinedColor()

The color used for undefined values.

Default is undefined, which indicates that the last color in the color array will be used.

Return type:

Color4Like

cee.undefinedColor(color)
Arguments:
Return type:

void

Methods

createTexture

ScalarMapperContinuousDomain.createTexture()
Return type:

Texture

domainValue

ScalarMapperContinuousDomain.domainValue(normalizedPosition)
Arguments:
  • normalizedPosition (number) – None

Return type:

number

mapToColor

ScalarMapperContinuousDomain.mapToColor(scalarValue)
Arguments:
  • scalarValue (number) – None

Return type:

Color4Like

mapToTextureCoordinate

ScalarMapperContinuousDomain.mapToTextureCoordinate(scalarValue)
Arguments:
  • scalarValue (number) – None

Return type:

Vec2Like

normalizedValue

ScalarMapperContinuousDomain.normalizedValue(domainValue)
Arguments:
  • domainValue (number) – None

Return type:

number

tickValuesHint

ScalarMapperContinuousDomain.tickValuesHint()
Return type:

ArrayLike <number>

version

ScalarMapperContinuousDomain.version()
Return type:

number