Class RGBAColorIntImpl

java.lang.Object
de.linusdev.lutils.color.impl.RGBAColorIntImpl
All Implemented Interfaces:
Color, RGBAColor, Simplifiable

public class RGBAColorIntImpl extends Object implements RGBAColor
  • Constructor Details

    • RGBAColorIntImpl

      public RGBAColorIntImpl(int red, int green, int blue, int alpha)
  • Method Details

    • getRed

      public int getRed()
      Description copied from interface: RGBAColor
      Red value of this color as int. Always between 0 (no red) and 255 (max red).
      Specified by:
      getRed in interface RGBAColor
      Returns:
      red value of this color
    • getGreen

      public int getGreen()
      Description copied from interface: RGBAColor
      Green value of this color as int. Always between 0 (no green) and 255 (max green).
      Specified by:
      getGreen in interface RGBAColor
      Returns:
      green value of this color
    • getBlue

      public int getBlue()
      Description copied from interface: RGBAColor
      Blue value of this color as int. Always between 0 (no blue) and 255 (max blue).
      Specified by:
      getBlue in interface RGBAColor
      Returns:
      blue value of this color
    • getAlpha

      public int getAlpha()
      Description copied from interface: RGBAColor
      Alpha value of this color as int. Always between 0 (fully transparent) and 255 (opaque).
      Specified by:
      getAlpha in interface RGBAColor
      Returns:
      alpha value of this color
    • red

      public double red()
      Description copied from interface: RGBAColor
      Red value of this color as double. Always between 0.0 (no red) and 1.0 (max red).
      Specified by:
      red in interface RGBAColor
      Returns:
      red value of this color
    • green

      public double green()
      Description copied from interface: RGBAColor
      Green value of this color as double. Always between 0.0 (no green) and 1.0 (max green).
      Specified by:
      green in interface RGBAColor
      Returns:
      green value of this color
    • blue

      public double blue()
      Description copied from interface: RGBAColor
      Blue value of this color as double. Always between 0.0 (no blue) and 1.0 (max blue).
      Specified by:
      blue in interface RGBAColor
      Returns:
      blue value of this color
    • alpha

      public double alpha()
      Description copied from interface: RGBAColor
      Alpha value of this color as double. Always between 0.0 (fully transparent) and 1.0 (opaque).
      Specified by:
      alpha in interface RGBAColor
      Returns:
      alpha value of this color
    • toString

      public String toString()
      Overrides:
      toString in class Object