Package 

Object Gradient.Companion

    • Method Summary

      Modifier and Type Method Description
      final Integer interpolateColor(Integer color1, Integer color2, Float ratio) Helper function for creation of color map.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • interpolateColor

         final Integer interpolateColor(Integer color1, Integer color2, Float ratio)

        Helper function for creation of color map. Interpolates between two given colors using their HSV values.

        Parameters:
        color1 - First color
        color2 - Second color
        ratio - Between 0 to 1.