Class AmbientLight
java.lang.Object
de.gurkenlabs.litiengine.graphics.ColorLayer
de.gurkenlabs.litiengine.graphics.AmbientLight
- All Implemented Interfaces:
IRenderable
public class AmbientLight
extends ColorLayer
Field Summary
Fields Modifier and Type Field Description static java.awt.Color
DEFAULT_COLOR
Constructor Summary
Constructors Constructor Description AmbientLight(Environment environment, java.awt.Color ambientColor)
Instantiates a newAmbientLight
instance.Method Summary
Modifier and Type Method Description protected void
clearSection(java.awt.Graphics2D g, java.awt.geom.Rectangle2D section)
protected void
renderSection(java.awt.Graphics2D g, java.awt.geom.Rectangle2D section)
Methods inherited from class de.gurkenlabs.litiengine.graphics.ColorLayer
getColor, getEnvironment, render, setAlpha, setColor, updateSection
Field Details
DEFAULT_COLOR
public static final java.awt.Color DEFAULT_COLOR
Constructor Details
AmbientLight
Instantiates a newAmbientLight
instance.- Parameters:
environment
- The environment to which this instance is assigned.ambientColor
- The color of this instance.
Method Details
renderSection
protected void renderSection(java.awt.Graphics2D g, java.awt.geom.Rectangle2D section)- Specified by:
renderSection
in classColorLayer
- See Also:
- Compositing Graphics
clearSection
protected void clearSection(java.awt.Graphics2D g, java.awt.geom.Rectangle2D section)- Specified by:
clearSection
in classColorLayer