Package graphics

Class Graphics

java.lang.Object
graphics.Graphics

public class Graphics extends Object

Azurite

A utility class for changing background colors. More functionality will probably added to this class as the engine starts to grow.
  • Field Details

    • defaultBackground

      public static Color 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

      public static void background(Color color)
      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

      public static void setDefaultBackground(Color color)
      Set the GL clear color for the DefaultRenderer
      Parameters:
      color - to set the clear color. Alpha is ignored