Class Colors

java.lang.Object
de.ellpeck.rockbottom.api.util.Colors

public final class Colors extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    bind(float r, float g, float b, float a)
     
    static void
    bind(int color)
     
    static float
    getA(int color)
     
    static int
    getAInt(int color)
     
    static float
    getB(int color)
     
    static int
    getBInt(int color)
     
    static float
    getG(int color)
     
    static int
    getGInt(int color)
     
    static float
    getR(int color)
     
    static int
    getRInt(int color)
     
    static int
    lerp(float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2, float factor)
     
    static int
    lerp(int c1, int c2, float factor)
     
    static int
    multiply(float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2)
     
    static int
    multiply(int color, float factor)
     
    static int
    multiply(int color, float r, float g, float b, float a)
     
    static int
    multiply(int c1, int c2)
     
    static int
    multiplyA(int color, float multiplier)
     
    static int
    rainbow(float pos)
     
    static int
    random(Random rand)
     
    static int
    rgb(float red, float green, float blue)
     
    static int
    rgb(float red, float green, float blue, float alpha)
     
    static int
    rgb(int r, int g, int b)
     
    static int
    rgb(int r, int g, int b, int a)
     
    static int
    setA(int color, float a)
     
    static String
    toFormattingCode(float r, float g, float b)
     
    static String
    toFormattingCode(int color)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Colors

      public Colors()
  • Method Details

    • rgb

      public static int rgb(int r, int g, int b)
    • rgb

      public static int rgb(int r, int g, int b, int a)
    • rgb

      public static int rgb(float red, float green, float blue)
    • rgb

      public static int rgb(float red, float green, float blue, float alpha)
    • getR

      public static float getR(int color)
    • getG

      public static float getG(int color)
    • getB

      public static float getB(int color)
    • getA

      public static float getA(int color)
    • getRInt

      public static int getRInt(int color)
    • getGInt

      public static int getGInt(int color)
    • getBInt

      public static int getBInt(int color)
    • getAInt

      public static int getAInt(int color)
    • setA

      public static int setA(int color, float a)
    • multiplyA

      public static int multiplyA(int color, float multiplier)
    • random

      public static int random(Random rand)
    • toFormattingCode

      public static String toFormattingCode(int color)
    • toFormattingCode

      public static String toFormattingCode(float r, float g, float b)
    • bind

      public static void bind(float r, float g, float b, float a)
    • bind

      public static void bind(int color)
    • lerp

      public static int lerp(int c1, int c2, float factor)
    • lerp

      public static int lerp(float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2, float factor)
    • multiply

      public static int multiply(int color, float factor)
    • multiply

      public static int multiply(int c1, int c2)
    • multiply

      public static int multiply(float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2)
    • multiply

      public static int multiply(int color, float r, float g, float b, float a)
    • rainbow

      public static int rainbow(float pos)