Class FSRGBColor

  • All Implemented Interfaces:
    FSColor

    public class FSRGBColor
    extends java.lang.Object
    implements FSColor
    • Field Detail

      • TRANSPARENT

        public static final FSRGBColor TRANSPARENT
      • _red

        private final int _red
      • _green

        private final int _green
      • _blue

        private final int _blue
    • Constructor Detail

      • FSRGBColor

        public FSRGBColor​(int red,
                          int green,
                          int blue)
      • FSRGBColor

        public FSRGBColor​(int color)
    • Method Detail

      • getBlue

        public int getBlue()
      • getGreen

        public int getGreen()
      • getRed

        public int getRed()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        private java.lang.String toString​(int color)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • RGBtoHSB

        private static float[] RGBtoHSB​(int r,
                                        int g,
                                        int b,
                                        float[] hsbvals)
      • HSBtoRGB

        private static int[] HSBtoRGB​(float hue,
                                      float saturation,
                                      float brightness)