Package graphics
Class Graphics
java.lang.Object
graphics.Graphics
Azurite
A utility class for changing background colors. More functionality will probably added to this class as the engine starts to grow.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
background
(float rgb) Set the GL clear color on a grayscale.static void
background
(float r, float g, float b) Set the GL clear colorstatic void
background
(Color color) Set the GL clear colorstatic void
setDefaultBackground
(float rgb) Set the GL clear color for the DefaultRenderer on a greyscale.static void
setDefaultBackground
(float r, float g, float b) Set the GL clear color for the DefaultRendererstatic void
setDefaultBackground
(Color color) Set the GL clear color for the DefaultRenderer
-
Field Details
-
defaultBackground
-
-
Constructor Details
-
Graphics
public Graphics()
-
-
Method Details
-
background
public static void background(float r, float g, float b) Set the GL clear color- Parameters:
r
- Red (0-255)g
- Green (0-255)b
- Blue (0-255)
-
background
public static void background(float rgb) Set the GL clear color on a grayscale.- Parameters:
rgb
- Single value affecting red, green, and blue (0-255)
-
background
Set the GL clear color- Parameters:
color
- to set the clear color. Alpha is ignored
-
setDefaultBackground
public static void setDefaultBackground(float rgb) Set the GL clear color for the DefaultRenderer on a greyscale.- Parameters:
rgb
- Single value affecting red, green, and blue (0-255)
-
setDefaultBackground
public static void setDefaultBackground(float r, float g, float b) Set the GL clear color for the DefaultRenderer- Parameters:
r
- Red (0-255)g
- Green (0-255)b
- Blue (0-255)
-
setDefaultBackground
Set the GL clear color for the DefaultRenderer- Parameters:
color
- to set the clear color. Alpha is ignored
-