Klasse RgbaColor

java.lang.Object
org.teamapps.common.format.RgbaColor
Alle implementierten Schnittstellen:
Color

public class RgbaColor extends Object implements Color
  • Konstruktordetails

    • RgbaColor

      public RgbaColor(int red, int green, int blue)
    • RgbaColor

      public RgbaColor(int red, int green, int blue, float alpha)
  • Methodendetails

    • withAlpha

      public RgbaColor withAlpha(float alpha)
    • toHtmlColorString

      public String toHtmlColorString()
      Angegeben von:
      toHtmlColorString in Schnittstelle Color
    • toHtmlHexColorString

      public String toHtmlHexColorString()
    • toRgbColorString

      public String toRgbColorString()
    • getRed

      public int getRed()
    • getGreen

      public int getGreen()
    • getBlue

      public int getBlue()
    • getHue

      public float getHue()
    • getSaturation

      public float getSaturation()
    • getLuminance

      public float getLuminance()
    • getAlpha

      public float getAlpha()
    • withBrightness

      public RgbaColor withBrightness(float brightnessZeroToOne)
    • withLuminance

      public RgbaColor withLuminance(float luminanceZeroToOne)
    • rgbToHsl

      public static float[] rgbToHsl(int red, int green, int blue)
    • fromHsla

      public static RgbaColor fromHsla(float h, float s, float l, float alpha)
      Parameter:
      h - 0-1
      s - 0-1
      l - 0-1
      alpha - 0-1
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • fromAwtColor

      public static RgbaColor fromAwtColor(Color color)
    • fromAwtColor

      public static RgbaColor fromAwtColor(Color color, float alpha)
    • fromHsba

      public static RgbaColor fromHsba(float h, float s, float b, float alpha)
    • fromRgb

      public static RgbaColor fromRgb(int red, int green, int blue)
    • fromRgba

      public static RgbaColor fromRgba(int red, int green, int blue, float alpha)
    • fromRgbValue

      public static RgbaColor fromRgbValue(int rgb)
    • fromRgbaValue

      public static RgbaColor fromRgbaValue(int rgba)
    • fromHex

      public static RgbaColor fromHex(String hex)
    • fromHtmlString

      public static RgbaColor fromHtmlString(String value)