Package com.toxicrain.rainengine.light
Class LightSystem
java.lang.Object
com.toxicrain.rainengine.light.LightSystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addLightSource
(float x, float y, float strength) Adds a light source to a position with a strengthstatic List<float[]>
static boolean
removeLightSource
(float x, float y, float strength) Removes a light source from the specified position with the specified strength.
-
Constructor Details
-
LightSystem
public LightSystem()
-
-
Method Details
-
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 lighty
- the y position for the lightstrength
- 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 removedy
- the y position of the light to be removedstrength
- the strength of the light to be removed- Returns:
- true if a light source was removed, false otherwise
-