Class RGBColor

All Implemented Interfaces:
Paint, Transparency, Serializable

public class RGBColor extends ExtendedColor
See Also:
  • Constructor Details

    • 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