diagrams-lib-1.2.0.7: Embedded domain-specific language for declarative graphics

Copyright(c) 2013 diagrams-lib team (see LICENSE)
LicenseBSD-style (see LICENSE)
Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone
LanguageHaskell2010

Diagrams.ThreeD.Light

Description

Types to specify lighting for 3D rendering.

Synopsis

Documentation

pointLight Source

Arguments

:: (Backend b R3, Renderable PointLight b) 
=> Colour Double

The color of the light

-> Diagram b R3 

Construct a Diagram with a single PointLight at the origin, which takes up no space.

parallelLight Source

Arguments

:: (Backend b R3, Renderable ParallelLight b) 
=> Direction

The direction in which the light travels.

-> Colour Double

The color of the light.

-> Diagram b R3 

Construct a Diagram with a single ParallelLight, which takes up no space.