SpotLight

indigo.shared.scenegraph.SpotLight
See theSpotLight companion object
final case class SpotLight(position: Point, color: RGBA, specular: RGBA, intensity: Double, angle: Radians, rotation: Radians, falloff: Falloff) extends Light

Spot lights emit light like a lamp, they are essentially a point light, where the light is only allow to escape in a particular anglular range.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Light
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def lookAt(point: Point): SpotLight
def lookDirection(direction: Vector2): SpotLight
def moveBy(amount: Point): SpotLight
def moveBy(x: Int, y: Int): SpotLight
def moveTo(newPosition: Point): SpotLight
def moveTo(x: Int, y: Int): SpotLight
def rotateBy(amount: Radians): SpotLight
def rotateTo(newRotation: Radians): SpotLight
def withAngle(newAngle: Radians): SpotLight
def withColor(newColor: RGBA): SpotLight
def withFalloff(newFalloff: Falloff): SpotLight
def withIntensity(newIntensity: Double): SpotLight
def withSpecular(newColor: RGBA): SpotLight

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product