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

Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone

Diagrams.ThreeD.Light

Description

Types to specify lighting for 3D rendering.

Synopsis

Documentation

pointLightSource

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.

parallelLightSource

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.