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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbackground(float rgb) Set the GL clear color on a grayscale.static voidbackground(float r, float g, float b) Set the GL clear colorstatic voidbackground(Color color) Set the GL clear colorstatic voidsetDefaultBackground(float rgb) Set the GL clear color for the DefaultRenderer on a greyscale.static voidsetDefaultBackground(float r, float g, float b) Set the GL clear color for the DefaultRendererstatic voidsetDefaultBackground(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
-