Package org.lazywizard.lazylib.opengl
Class ColorUtils
Object
ColorUtils
Contains methods for working with OpenGL and AWT color objects.
- Since:
- 1.9
- Author:
- LazyWizard
-
Method Details
-
glColor
Sets the OpenGL color using an AWTColorobject.- Parameters:
color- The color to set.alphaMult- Multiplies the color's alpha channel with this, or replaces it ifoverrideOriginalAlphaistrue.overrideOriginalAlpha- Whether to completely overridecolor's alpha channel withalphaMult.- Since:
- 1.9
-
glColor
Sets the OpenGL color using an AWTColorobject.- Parameters:
color- The color to set.alpha- The color's opacity, from 0 to 1.- Since:
- 2.3
-
glColor
Sets the OpenGL color using an AWTColorobject.- Parameters:
color- The color to set.- Since:
- 1.9
-
genRandomColor
Generates aColorwith randomized RGB components.- Returns:
- A
Colorwhose RGB components are all randomized. Alpha will be at 100%. - Since:
- 3.0
-