public class

ColorUtils

extends Object
java.lang.Object
   ↳ org.andengine.util.color.ColorUtils

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Public Constructors
ColorUtils()
Public Methods
static Color convertABGRPackedIntToColor(int pABGRPackedInt)
static Color convertARGBPackedIntToColor(int pARGBPackedInt)
final static int convertHSVToARGBPackedInt(float pHue, float pSaturation, float pValue)
final static Color convertHSVToColor(float pHue, float pSaturation, float pValue)
final static float convertPackedIntToPackedFloat(int pPackedInt)
final static float convertRGBAToABGRPackedFloat(float pRed, float pGreen, float pBlue, float pAlpha)
final static int convertRGBAToABGRPackedInt(float pRed, float pGreen, float pBlue, float pAlpha)
final static float convertRGBAToARGBPackedFloat(float pRed, float pGreen, float pBlue, float pAlpha)
final static int convertRGBAToARGBPackedInt(float pRed, float pGreen, float pBlue, float pAlpha)
static float extractAlphaFromABGRPackedInt(int pABGRPackedInt)
static float extractAlphaFromARGBPackedInt(int pARGBPackedInt)
static float extractBlueFromABGRPackedInt(int pABGRPackedInt)
static float extractBlueFromARGBPackedInt(int pARGBPackedInt)
static float extractGreenFromABGRPackedInt(int pABGRPackedInt)
static float extractGreenFromARGBPackedInt(int pARGBPackedInt)
static float extractRedFromABGRPackedInt(int pABGRPackedInt)
static float extractRedFromARGBPackedInt(int pARGBPackedInt)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ColorUtils ()

Public Methods

public static Color convertABGRPackedIntToColor (int pABGRPackedInt)

public static Color convertARGBPackedIntToColor (int pARGBPackedInt)

public static final int convertHSVToARGBPackedInt (float pHue, float pSaturation, float pValue)

Parameters
pHue [0 .. 360)
pSaturation [0...1]
pValue [0...1]

public static final Color convertHSVToColor (float pHue, float pSaturation, float pValue)

Parameters
pHue [0 .. 360)
pSaturation [0...1]
pValue [0...1]

public static final float convertPackedIntToPackedFloat (int pPackedInt)

public static final float convertRGBAToABGRPackedFloat (float pRed, float pGreen, float pBlue, float pAlpha)

public static final int convertRGBAToABGRPackedInt (float pRed, float pGreen, float pBlue, float pAlpha)

public static final float convertRGBAToARGBPackedFloat (float pRed, float pGreen, float pBlue, float pAlpha)

public static final int convertRGBAToARGBPackedInt (float pRed, float pGreen, float pBlue, float pAlpha)

public static float extractAlphaFromABGRPackedInt (int pABGRPackedInt)

public static float extractAlphaFromARGBPackedInt (int pARGBPackedInt)

public static float extractBlueFromABGRPackedInt (int pABGRPackedInt)

public static float extractBlueFromARGBPackedInt (int pARGBPackedInt)

public static float extractGreenFromABGRPackedInt (int pABGRPackedInt)

public static float extractGreenFromARGBPackedInt (int pARGBPackedInt)

public static float extractRedFromABGRPackedInt (int pABGRPackedInt)

public static float extractRedFromARGBPackedInt (int pARGBPackedInt)