Maintainer | diagrams-discuss@googlegroups.com |
---|---|
Safe Haskell | None |
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 :: (Direction d, Backend b R3, Renderable ParallelLight b) => d -> Colour Double -> Diagram b R3
Documentation
data PointLight Source
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.
:: (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.