Class RGBColor

  • All Implemented Interfaces:
    java.awt.Paint, java.awt.Transparency, java.io.Serializable

    public class RGBColor
    extends ExtendedColor
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RGBColor​(float floatRed, float floatGreen, float floatBlue)
      Construct a RGB Color (values are floats from 0 to 1).
      RGBColor​(float floatRed, float floatGreen, float floatBlue, float floatAlpha)
      Construct a RGB Color (values are floats from 0 to 1).
      RGBColor​(int intRed, int intGreen, int intBlue)
      Constructs a RGB Color based on 3 color values (values are integers from 0 to 255).
      RGBColor​(int intRed, int intGreen, int intBlue, int intAlpha)
      Constructs a RGB Color based on 3 color values (values are integers from 0 to 255).
    • Method Summary

      • Methods inherited from class java.awt.Color

        brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RGBColor

        public RGBColor​(int intRed,
                        int intGreen,
                        int intBlue)
        Constructs a RGB Color based on 3 color values (values are integers from 0 to 255).
        Parameters:
        intRed - the red
        intGreen - the green
        intBlue - the blue
      • RGBColor

        public RGBColor​(int intRed,
                        int intGreen,
                        int intBlue,
                        int intAlpha)
        Constructs a RGB Color based on 3 color values (values are integers from 0 to 255).
        Parameters:
        intRed - the red
        intGreen - the green
        intBlue - the blue
        intAlpha - the alpha
      • RGBColor

        public RGBColor​(float floatRed,
                        float floatGreen,
                        float floatBlue)
        Construct a RGB Color (values are floats from 0 to 1).
        Parameters:
        floatRed - the red
        floatGreen - the green
        floatBlue - the blue
      • RGBColor

        public RGBColor​(float floatRed,
                        float floatGreen,
                        float floatBlue,
                        float floatAlpha)
        Construct a RGB Color (values are floats from 0 to 1).
        Parameters:
        floatRed - the red
        floatGreen - the green
        floatBlue - the blue
        floatAlpha - the alpha