Class AmbientLight
java.lang.Object
de.gurkenlabs.litiengine.graphics.ColorLayer
de.gurkenlabs.litiengine.graphics.AmbientLight
- All Implemented Interfaces:
IRenderable
public class AmbientLight
extends ColorLayerField Summary
Fields Modifier and Type Field Description static java.awt.ColorDEFAULT_COLORConstructor Summary
Constructors Constructor Description AmbientLight(Environment environment, java.awt.Color ambientColor)Instantiates a newAmbientLightinstance.Method Summary
Modifier and Type Method Description protected voidclearSection(java.awt.Graphics2D g, java.awt.geom.Rectangle2D section)protected voidrenderSection(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 newAmbientLightinstance.- 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:
renderSectionin classColorLayer- See Also:
- Compositing Graphics
clearSection
protected void clearSection(java.awt.Graphics2D g, java.awt.geom.Rectangle2D section)- Specified by:
clearSectionin classColorLayer
