.. role:: ts-api-decorator

############################
ScalarMapperContinuousDomain
############################

.. js:module:: cee
   :noindex:

.. container:: ts-api-section

   .. js:class:: ScalarMapperContinuousDomain

      Base class for scalar mappers that implement normalizedValue / domainValue



.. container:: api-index-section

   .. rubric:: Constructors

   .. rst-class:: api-index-list-item api-kind-constructor api-parent-kind-class

   * :js:meth:`~cee.ScalarMapperContinuousDomain.constructor`



.. container:: api-index-section

   .. rubric:: Accessors

   .. rst-class:: api-index-list-item api-kind-accessor api-parent-kind-class

   * :js:attr:`~cee.ScalarMapperContinuousDomain.aboveRangeColor`
   * :js:attr:`~cee.ScalarMapperContinuousDomain.belowRangeColor`
   * :js:attr:`~cee.ScalarMapperContinuousDomain.undefinedColor`



.. container:: api-index-section

   .. rubric:: Methods

   .. rst-class:: api-index-list-item api-kind-method api-parent-kind-class

   * :js:meth:`~cee.ScalarMapperContinuousDomain.createTexture`
   * :js:meth:`~cee.ScalarMapperContinuousDomain.domainValue`
   * :js:meth:`~cee.ScalarMapperContinuousDomain.mapToColor`
   * :js:meth:`~cee.ScalarMapperContinuousDomain.mapToTextureCoordinate`
   * :js:meth:`~cee.ScalarMapperContinuousDomain.normalizedValue`
   * :js:meth:`~cee.ScalarMapperContinuousDomain.tickValuesHint`
   * :js:meth:`~cee.ScalarMapperContinuousDomain.version`





------------

Constructors
============

.. container:: ts-api-section

   .. js:function:: ScalarMapperContinuousDomain.constructor()



      :rtype: ScalarMapperContinuousDomain



Accessors
=========

.. container:: ts-api-section

   .. js:function:: 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.


      :rtype: Color4Like

   .. js:function:: ScalarMapperContinuousDomain.aboveRangeColor( color)

      :param color: None
      :type color: Color4Like


      :rtype: void



.. container:: ts-api-section

   .. js:function:: 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.


      :rtype: Color4Like

   .. js:function:: ScalarMapperContinuousDomain.belowRangeColor( color)

      :param color: None
      :type color: Color4Like


      :rtype: void



.. container:: ts-api-section

   .. js:function:: ScalarMapperContinuousDomain.undefinedColor()



      The color used for undefined values.


      :rtype: Color4Like

   .. js:function:: ScalarMapperContinuousDomain.undefinedColor( color)

      :param color: None
      :type color: Color4Like


      :rtype: void



Methods
=======

.. rst-class:: ts-api-section

createTexture
-------------

.. js:method:: ScalarMapperContinuousDomain.createTexture()



   :rtype: Texture

.. rst-class:: ts-api-section

domainValue
-----------

.. js:method:: ScalarMapperContinuousDomain.domainValue( normalizedPosition)

   :param normalizedPosition: None
   :type normalizedPosition: number


   :rtype: number

.. rst-class:: ts-api-section

mapToColor
----------

.. js:method:: ScalarMapperContinuousDomain.mapToColor( scalarValue)

   :param scalarValue: None
   :type scalarValue: number


   :rtype: Color4Like

.. rst-class:: ts-api-section

mapToTextureCoordinate
----------------------

.. js:method:: ScalarMapperContinuousDomain.mapToTextureCoordinate( scalarValue)

   :param scalarValue: None
   :type scalarValue: number


   :rtype: Vec2Like

.. rst-class:: ts-api-section

normalizedValue
---------------

.. js:method:: ScalarMapperContinuousDomain.normalizedValue( domainValue)

   :param domainValue: None
   :type domainValue: number


   :rtype: number

.. rst-class:: ts-api-section

tickValuesHint
--------------

.. js:method:: ScalarMapperContinuousDomain.tickValuesHint()



   :rtype: ArrayLike <number>

.. rst-class:: ts-api-section

version
-------

.. js:method:: ScalarMapperContinuousDomain.version()



   :rtype: number

