Interface Color

All Known Subinterfaces:
HSVAColor, RGBAColor
All Known Implementing Classes:
HSVAColorImpl, RGBAColorDoubleImpl, RGBAColorIntImpl

public interface Color
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final RGBAColor
     
    static final RGBAColor
     
    static final RGBAColor
     
    static final RGBAColor
     
    static final RGBAColor
     
    static final RGBAColor
     
    static final RGBAColor
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull HSVAColor
    ofHSV(double h, double s, double v)
     
    static @NotNull HSVAColor
    ofHSVA(double h, double s, double v, double a)
     
    static @NotNull RGBAColor
    ofRGB(@org.jetbrains.annotations.Range(from=0L, to=255L) int r, @org.jetbrains.annotations.Range(from=0L, to=255L) int g, @org.jetbrains.annotations.Range(from=0L, to=255L) int b)
     
    static @NotNull RGBAColor
    ofRGB(double r, double g, double b)
     
    static @NotNull RGBAColor
    ofRGB(int hex)
     
    static @NotNull RGBAColor
    ofRGBA(@org.jetbrains.annotations.Range(from=0L, to=255L) int r, @org.jetbrains.annotations.Range(from=0L, to=255L) int g, @org.jetbrains.annotations.Range(from=0L, to=255L) int b, @org.jetbrains.annotations.Range(from=0L, to=255L) int a)
     
    static @NotNull RGBAColor
    ofRGBA(double r, double g, double b, double a)
     
    static @NotNull RGBAColor
    ofRGBA(int hex)
     
    @NotNull HSVAColor
    This Color converted to HSVAColor.
    @NotNull RGBAColor
    This Color converted to RGBAColor.
  • Field Details

  • Method Details

    • ofRGB

      @Contract(value="_, _, _ -> new", pure=true) @NotNull static @NotNull RGBAColor ofRGB(@org.jetbrains.annotations.Range(from=0L, to=255L) int r, @org.jetbrains.annotations.Range(from=0L, to=255L) int g, @org.jetbrains.annotations.Range(from=0L, to=255L) int b)
    • ofRGBA

      @Contract(value="_, _, _, _ -> new", pure=true) @NotNull static @NotNull RGBAColor ofRGBA(@org.jetbrains.annotations.Range(from=0L, to=255L) int r, @org.jetbrains.annotations.Range(from=0L, to=255L) int g, @org.jetbrains.annotations.Range(from=0L, to=255L) int b, @org.jetbrains.annotations.Range(from=0L, to=255L) int a)
    • ofRGBA

      @Contract(value="_, -> new", pure=true) @NotNull static @NotNull RGBAColor ofRGBA(int hex)
    • ofRGB

      @Contract(value="_, -> new", pure=true) @NotNull static @NotNull RGBAColor ofRGB(int hex)
    • ofRGB

      @Contract(value="_, _, _ -> new", pure=true) @NotNull static @NotNull RGBAColor ofRGB(double r, double g, double b)
    • ofRGBA

      @Contract(value="_, _, _, _ -> new", pure=true) @NotNull static @NotNull RGBAColor ofRGBA(double r, double g, double b, double a)
    • ofHSV

      @Contract(value="_, _, _ -> new", pure=true) @NotNull static @NotNull HSVAColor ofHSV(double h, double s, double v)
    • ofHSVA

      @Contract(value="_, _, _, _ -> new", pure=true) @NotNull static @NotNull HSVAColor ofHSVA(double h, double s, double v, double a)
    • toRGBAColor

      @NotNull @NotNull RGBAColor toRGBAColor()
      This Color converted to RGBAColor. If this is already a RGBAColor, this object itself may be returned.
      Returns:
      RGBAColor
    • toHSVAColor

      @NotNull @NotNull HSVAColor toHSVAColor()
      This Color converted to HSVAColor. If this is already a HSVAColor, this object itself may be returned.
      Returns:
      HSVAColor