Class ColorUtil


  • public final class ColorUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ColorUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void HSLtoRGB​(float h, float s, float l, int @NotNull [] rgb)  
      private static float hue2RGB​(float v1, float v2, float vH)  
      static void RGBtoHSL​(int r, int g, int b, float @NotNull [] hsl)  
      static java.lang.String toString​(@Nullable java.awt.Color c)  
      static java.awt.Color withAlpha​(@NotNull java.awt.Color c, float alpha)  
      • Methods inherited from class java.lang.Object

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

      • ColorUtil

        private ColorUtil()
    • Method Detail

      • withAlpha

        public static java.awt.Color withAlpha​(@NotNull
                                               @NotNull java.awt.Color c,
                                               float alpha)
      • toString

        public static java.lang.String toString​(@Nullable
                                                @Nullable java.awt.Color c)
      • RGBtoHSL

        public static void RGBtoHSL​(int r,
                                    int g,
                                    int b,
                                    float @NotNull [] hsl)
      • HSLtoRGB

        public static void HSLtoRGB​(float h,
                                    float s,
                                    float l,
                                    int @NotNull [] rgb)
      • hue2RGB

        private static float hue2RGB​(float v1,
                                     float v2,
                                     float vH)