ScalarMapperContinuousDomain

class cee.ScalarMapperContinuousDomain()

Base class for scalar mappers that implement normalizedValue / domainValue

Constructors


Constructors

ScalarMapperContinuousDomain.constructor()
Return type:

ScalarMapperContinuousDomain

Accessors

ScalarMapperContinuousDomain.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

ScalarMapperContinuousDomain.aboveRangeColor(color)
Arguments:
Return type:

void

ScalarMapperContinuousDomain.belowRangeColor()

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

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

Return type:

Color4Like

ScalarMapperContinuousDomain.belowRangeColor(color)
Arguments:
Return type:

void

ScalarMapperContinuousDomain.undefinedColor()

The color used for undefined values.

Return type:

Color4Like

ScalarMapperContinuousDomain.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