net.acomputerdog.BlazeLoader.util.render
Class ColorUtils

java.lang.Object
  extended by net.acomputerdog.BlazeLoader.util.render.ColorUtils

public class ColorUtils
extends java.lang.Object

Utilities to assist with using colors in game


Constructor Summary
ColorUtils()
           
 
Method Summary
static int getARBG(int alpha, int red, int green, int blue)
          Generates a FontRenderer-compatible ARBG color int.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorUtils

public ColorUtils()
Method Detail

getARBG

public static int getARBG(int alpha,
                          int red,
                          int green,
                          int blue)
Generates a FontRenderer-compatible ARBG color int.

Parameters:
alpha - Alpha-channel value.
red - Red-channel value.
green - Green-channel value.
blue - Blue-channel value.
Returns:
Return the alpha, red, green, and blue compressed into an ARBG int.