Package lighting

Class Light

java.lang.Object
lighting.Light
Direct Known Subclasses:
AmbientLight, LightSource

public abstract class Light
extends java.lang.Object
An abstract base class for all kinds of light.
  • Field Summary

    Fields
    Modifier and Type Field Description
    Colour colour
    The colour of the light.
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected Light​(Colour colour)
    A constructor to set the colour of the light.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • colour

      public final Colour colour
      The colour of the light.
  • Constructor Details

    • Light

      protected Light​(Colour colour)
      A constructor to set the colour of the light.
      Parameters:
      colour - The colour of the light.