Class LightSystem

java.lang.Object
com.toxicrain.rainengine.light.LightSystem

public class LightSystem extends Object
  • Constructor Details

    • LightSystem

      public LightSystem()
  • Method Details

    • getLightSources

      public static List<float[]> getLightSources()
    • addLightSource

      public static void addLightSource(float x, float y, float strength)
      Adds a light source to a position with a strength
      Parameters:
      x - the x position for the light
      y - the y position for the light
      strength - the strength of the light, cannot be 0 or 1
    • removeLightSource

      public static boolean removeLightSource(float x, float y, float strength)
      Removes a light source from the specified position with the specified strength.
      Parameters:
      x - the x position of the light to be removed
      y - the y position of the light to be removed
      strength - the strength of the light to be removed
      Returns:
      true if a light source was removed, false otherwise