.. role:: clio-static
   :class: clio-flag clio-flag-static


#################
ColorTableFactory
#################

.. js:class:: cee.ColorTableFactory

   
   Index
   =====
   
   .. rubric:: Constructors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~cee.ColorTableFactory.constructor`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~static cee.ColorTableFactory.color3TableArray`
   * :js:meth:`~static cee.ColorTableFactory.color4TableArray`
   * :js:meth:`~static cee.ColorTableFactory.interpolateColor4Array`
   * :js:meth:`~static cee.ColorTableFactory.interpolateColorArray`
   * :js:meth:`~static cee.ColorTableFactory.partColorArray`
   
   



.. rst-class:: kind-group kind-constructors

.. rubric:: Constructors
   :class: kind-group-title


.. js:method:: cee.ColorTableFactory.constructor

      .. rst-class:: sig-pretty-signature
      
         | ColorTableFactory(): :js:class:`ColorTableFactory <cee.ColorTableFactory>`
      
      **Returns**\ : :js:class:`ColorTableFactory <cee.ColorTableFactory>`
      



.. rst-class:: kind-group kind-methods

.. rubric:: Methods
   :class: kind-group-title


.. js:method:: static cee.ColorTableFactory.color3TableArray

      .. rst-class:: clio-flags
      
         :clio-static:`static`
      
      .. rst-class:: sig-pretty-signature
      
         | color3TableArray(**colorTable**\ : :js:data:`ColorTable <cee.ColorTable>`\ , **colorCount**\ : *number*\ ): :js:class:`Color3Like <cee.Color3Like>`\ []
      
      Returns an array of Color3 created from the given color scheme.
      
      The returned array will have colorCount number of values
      
      **Parameters**
      
      
         **colorTable**\ : :js:data:`ColorTable <cee.ColorTable>`
      
         **colorCount**\ : *number*
      
      
      **Returns**\ : :js:class:`Color3Like <cee.Color3Like>`\ []
      



.. js:method:: static cee.ColorTableFactory.color4TableArray

      .. rst-class:: clio-flags
      
         :clio-static:`static`
      
      .. rst-class:: sig-pretty-signature
      
         | color4TableArray(**colorTable**\ : :js:data:`ColorTable <cee.ColorTable>`\ , **colorCount**\ : *number*\ ): :js:class:`Color4Like <cee.Color4Like>`\ []
      
      Returns an array of Color4 created from the given color scheme.
      
      The returned array will have colorCount number of values. All alpha values will be set to 1.
      
      **Parameters**
      
      
         **colorTable**\ : :js:data:`ColorTable <cee.ColorTable>`
      
         **colorCount**\ : *number*
      
      
      **Returns**\ : :js:class:`Color4Like <cee.Color4Like>`\ []
      



.. js:method:: static cee.ColorTableFactory.interpolateColor4Array

      .. rst-class:: clio-flags
      
         :clio-static:`static`
      
      .. rst-class:: sig-pretty-signature
      
         | interpolateColor4Array(**colorArray**\ : :js:class:`Color4Like <cee.Color4Like>`\ [], **targetColorCount**\ : *number*\ ): :js:class:`Color4Like <cee.Color4Like>`\ []
      
      Interpolate a graded color table with the given number of colors (targetColorCount) based on the input colors (colorArray).
      
      This is useful for creating gradient/continuous style color maps based on two or more colors.
      
      **Parameters**
      
      
         **colorArray**\ : :js:class:`Color4Like <cee.Color4Like>`\ []
      
         **targetColorCount**\ : *number*
      
      
      **Returns**\ : :js:class:`Color4Like <cee.Color4Like>`\ []
      



.. js:method:: static cee.ColorTableFactory.interpolateColorArray

      .. rst-class:: clio-flags
      
         :clio-static:`static`
      
      .. rst-class:: sig-pretty-signature
      
         | interpolateColorArray(**colorArray**\ : :js:class:`Color3Like <cee.Color3Like>`\ [], **targetColorCount**\ : *number*\ ): :js:class:`Color3Like <cee.Color3Like>`\ []
      
      Interpolate a graded color table with the given number of colors (targetColorCount) based on the input colors (colorArray).
      
      This is useful for creating gradient/continuous style color maps based on two or more colors.
      
      **Parameters**
      
      
         **colorArray**\ : :js:class:`Color3Like <cee.Color3Like>`\ []
      
         **targetColorCount**\ : *number*
      
      
      **Returns**\ : :js:class:`Color3Like <cee.Color3Like>`\ []
      



.. js:method:: static cee.ColorTableFactory.partColorArray

      .. rst-class:: clio-flags
      
         :clio-static:`static`
      
      .. rst-class:: sig-pretty-signature
      
         | partColorArray(**colorCount**\ : *number*\ ): :js:class:`Color3Like <cee.Color3Like>`\ []
      
      Returns an array with colors matching the part colors in the Envision and the cee.ug component.
      
      **Parameters**
      
      
         **colorCount**\ : *number*
      
      
      **Returns**\ : :js:class:`Color3Like <cee.Color3Like>`\ []
      




