diagrams-lib-1.1.0.3: 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

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

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.