Class ShadowColor


  • @Implements(android.graphics.Color.class)
    public class ShadowColor
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ShadowColor()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static int HSVToColor​(int alpha, float[] hsv)  
      protected static void RGBToHSV​(int red, int green, int blue, float[] hsv)
      This is implemented in native code in the Android SDK.
      • Methods inherited from class java.lang.Object

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

      • ShadowColor

        public ShadowColor()
    • Method Detail

      • RGBToHSV

        @Implementation
        protected static void RGBToHSV​(int red,
                                       int green,
                                       int blue,
                                       float[] hsv)
        This is implemented in native code in the Android SDK.

        Since HSV == HSB then the implementation from Color can be used, with a small adjustment to the representation of the hue.

        Color represents hue as 0..1 (where 1 == 100% == 360 degrees), while Color represents hue as 0..360 degrees. The correct hue can be calculated by multiplying with 360.

        Parameters:
        red - Red component
        green - Green component
        blue - Blue component
        hsv - Array to store HSV components
      • HSVToColor

        @Implementation
        protected static int HSVToColor​(int alpha,
                                        float[] hsv)