Copyright | (c) 2013 diagrams-lib team (see LICENSE) |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | diagrams-discuss@googlegroups.com |
Safe Haskell | None |
Language | Haskell2010 |
Types to specify lighting for 3D rendering.
- data PointLight = PointLight P3 (Colour Double)
- data ParallelLight = ParallelLight R3 (Colour Double)
- pointLight :: (Backend b R3, Renderable PointLight b) => Colour Double -> Diagram b R3
- parallelLight :: (Backend b R3, Renderable ParallelLight b) => Direction -> Colour Double -> Diagram b R3
Documentation
data PointLight Source
Transformable PointLight | |
Typeable * PointLight | |
type V PointLight = R3 |
data ParallelLight Source
:: (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.
:: (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.