/usr/share/doc/libghc-diagrams-lib-doc/html/Diagrams-ThreeD-Attributes.html is in libghc-diagrams-lib-doc 1.3.0.8-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Diagrams.ThreeD.Attributes</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Diagrams-ThreeD-Attributes.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Diagrams-ThreeD-Attributes.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">diagrams-lib-1.3.0.8: Embedded domain-specific language for declarative graphics</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>(c) 2014 diagrams-lib team (see LICENSE)</td></tr><tr><th>License</th><td>BSD-style (see LICENSE)</td></tr><tr><th>Maintainer</th><td>diagrams-discuss@googlegroups.com</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Diagrams.ThreeD.Attributes</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Diagrams may have <em>attributes</em> which affect the way they are
rendered. This module defines some common attributes relevant in
3D; particular backends may also define more backend-specific
attributes.</p><p>Every attribute type must have a <em>semigroup</em> structure, that is, an
associative binary operation for combining two attributes into one.
Unless otherwise noted, all the attributes defined here use the
<code><a href="file:///usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Last">Last</a></code> structure, that is, combining two attributes simply keeps
the second one and throws away the first. This means that child
attributes always override parent attributes.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">newtype</span> <a href="#t:SurfaceColor">SurfaceColor</a> = <a href="#v:SurfaceColor">SurfaceColor</a> (<a href="file:///usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Last">Last</a> (<a href="file:///usr/share/doc/libghc-colour-doc/html/Data-Colour-RGBSpace.html#t:Colour">Colour</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>))</li><li class="src short"><a href="#v:_SurfaceColor">_SurfaceColor</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="Diagrams-ThreeD-Attributes.html#t:SurfaceColor">SurfaceColor</a> (<a href="file:///usr/share/doc/libghc-colour-doc/html/Data-Colour-RGBSpace.html#t:Colour">Colour</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)</li><li class="src short"><a href="#v:sc">sc</a> :: <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:HasStyle">HasStyle</a> d => <a href="file:///usr/share/doc/libghc-colour-doc/html/Data-Colour-RGBSpace.html#t:Colour">Colour</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> d -> d</li><li class="src short"><a href="#v:_sc">_sc</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Lens-39-">Lens'</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:Style">Style</a> v n) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///usr/share/doc/libghc-colour-doc/html/Data-Colour-RGBSpace.html#t:Colour">Colour</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>))</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Diffuse">Diffuse</a> = <a href="#v:Diffuse">Diffuse</a> (<a href="file:///usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Last">Last</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)</li><li class="src short"><a href="#v:_Diffuse">_Diffuse</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="Diagrams-ThreeD-Attributes.html#t:Diffuse">Diffuse</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:diffuse">diffuse</a> :: <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:HasStyle">HasStyle</a> d => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> d -> d</li><li class="src short"><a href="#v:_diffuse">_diffuse</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Lens-39-">Lens'</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:Style">Style</a> v n) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Ambient">Ambient</a> = <a href="#v:Ambient">Ambient</a> (<a href="file:///usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Last">Last</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)</li><li class="src short"><a href="#v:_Ambient">_Ambient</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="Diagrams-ThreeD-Attributes.html#t:Ambient">Ambient</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:ambient">ambient</a> :: <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:HasStyle">HasStyle</a> d => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> d -> d</li><li class="src short"><a href="#v:_ambient">_ambient</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Lens-39-">Lens'</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:Style">Style</a> v n) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:Specular">Specular</a> = <a href="#v:Specular">Specular</a> {<ul class="subs"><li><a href="#v:_specularIntensity">_specularIntensity</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></li><li><a href="#v:_specularSize">_specularSize</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></li></ul>}</li><li class="src short"><a href="#v:specularSize">specularSize</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Lens-39-">Lens'</a> <a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:specularIntensity">specularIntensity</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Lens-39-">Lens'</a> <a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Highlight">Highlight</a> = <a href="#v:Highlight">Highlight</a> (<a href="file:///usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Last">Last</a> <a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a>)</li><li class="src short"><a href="#v:_Highlight">_Highlight</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="Diagrams-ThreeD-Attributes.html#t:Highlight">Highlight</a> <a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a></li><li class="src short"><a href="#v:highlight">highlight</a> :: <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:HasStyle">HasStyle</a> d => <a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a> -> d -> d</li><li class="src short"><a href="#v:_highlight">_highlight</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Lens-39-">Lens'</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:Style">Style</a> v n) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a>)</li><li class="src short"><a href="#v:highlightIntensity">highlightIntensity</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Traversal-39-">Traversal'</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:Style">Style</a> v n) <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:highlightSize">highlightSize</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Traversal-39-">Traversal'</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:Style">Style</a> v n) <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:SurfaceColor" class="def">SurfaceColor</a> <a href="src/Diagrams-ThreeD-Attributes.html#SurfaceColor" class="link">Source</a></p><div class="doc"><p><code>SurfaceColor</code> is the inherent pigment of an object, assumed to
be opaque.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SurfaceColor" class="def">SurfaceColor</a> (<a href="file:///usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Last">Last</a> (<a href="file:///usr/share/doc/libghc-colour-doc/html/Data-Colour-RGBSpace.html#t:Colour">Colour</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>))</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:SurfaceColor" class="caption collapser" onclick="toggleSection('i:SurfaceColor')">Instances</p><div id="section.i:SurfaceColor" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Semigroup">Semigroup</a> <a href="Diagrams-ThreeD-Attributes.html#t:SurfaceColor">SurfaceColor</a></span> <a href="src/Diagrams-ThreeD-Attributes.html#line-41" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:AttributeClass">AttributeClass</a> <a href="Diagrams-ThreeD-Attributes.html#t:SurfaceColor">SurfaceColor</a></span> <a href="src/Diagrams-ThreeD-Attributes.html#line-43" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:_SurfaceColor" class="def">_SurfaceColor</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="Diagrams-ThreeD-Attributes.html#t:SurfaceColor">SurfaceColor</a> (<a href="file:///usr/share/doc/libghc-colour-doc/html/Data-Colour-RGBSpace.html#t:Colour">Colour</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>) <a href="src/Diagrams-ThreeD-Attributes.html#_SurfaceColor" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:sc" class="def">sc</a> :: <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:HasStyle">HasStyle</a> d => <a href="file:///usr/share/doc/libghc-colour-doc/html/Data-Colour-RGBSpace.html#t:Colour">Colour</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> d -> d <a href="src/Diagrams-ThreeD-Attributes.html#sc" class="link">Source</a></p><div class="doc"><p>Set the surface color.</p></div></div><div class="top"><p class="src"><a name="v:_sc" class="def">_sc</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Lens-39-">Lens'</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:Style">Style</a> v n) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///usr/share/doc/libghc-colour-doc/html/Data-Colour-RGBSpace.html#t:Colour">Colour</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)) <a href="src/Diagrams-ThreeD-Attributes.html#_sc" class="link">Source</a></p><div class="doc"><p>Lens onto the surface colour of a style.</p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:Diffuse" class="def">Diffuse</a> <a href="src/Diagrams-ThreeD-Attributes.html#Diffuse" class="link">Source</a></p><div class="doc"><p><code>Diffuse</code> is the fraction of incident light reflected diffusely,
that is, in all directions. The actual light reflected is the
product of this value, the incident light, and the <code>SurfaceColor</code>
Attribute. For physical reasonableness, <code>Diffuse</code> should have a
value between 0 and 1; this is not checked.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Diffuse" class="def">Diffuse</a> (<a href="file:///usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Last">Last</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Diffuse" class="caption collapser" onclick="toggleSection('i:Diffuse')">Instances</p><div id="section.i:Diffuse" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Semigroup">Semigroup</a> <a href="Diagrams-ThreeD-Attributes.html#t:Diffuse">Diffuse</a></span> <a href="src/Diagrams-ThreeD-Attributes.html#line-62" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:AttributeClass">AttributeClass</a> <a href="Diagrams-ThreeD-Attributes.html#t:Diffuse">Diffuse</a></span> <a href="src/Diagrams-ThreeD-Attributes.html#line-64" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:_Diffuse" class="def">_Diffuse</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="Diagrams-ThreeD-Attributes.html#t:Diffuse">Diffuse</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> <a href="src/Diagrams-ThreeD-Attributes.html#_Diffuse" class="link">Source</a></p><div class="doc"><p>Isomorphism between <code><a href="Diagrams-ThreeD-Attributes.html#t:Diffuse">Diffuse</a></code> and <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></code></p></div></div><div class="top"><p class="src"><a name="v:diffuse" class="def">diffuse</a> :: <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:HasStyle">HasStyle</a> d => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> d -> d <a href="src/Diagrams-ThreeD-Attributes.html#diffuse" class="link">Source</a></p><div class="doc"><p>Set the diffuse reflectance.</p></div></div><div class="top"><p class="src"><a name="v:_diffuse" class="def">_diffuse</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Lens-39-">Lens'</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:Style">Style</a> v n) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>) <a href="src/Diagrams-ThreeD-Attributes.html#_diffuse" class="link">Source</a></p><div class="doc"><p>Lens onto the possible diffuse reflectance in a style.</p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:Ambient" class="def">Ambient</a> <a href="src/Diagrams-ThreeD-Attributes.html#Ambient" class="link">Source</a></p><div class="doc"><p><code>Ambient</code> is an ad-hoc representation of indirect lighting. The
product of <code>Ambient</code> and <code>SurfaceColor</code> is added to the light
leaving an object due to diffuse and specular terms. <code>Ambient</code> can
be set per-object, and can be loosely thought of as the product of
indirect lighting incident on that object and the diffuse
reflectance.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Ambient" class="def">Ambient</a> (<a href="file:///usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Last">Last</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Ambient" class="caption collapser" onclick="toggleSection('i:Ambient')">Instances</p><div id="section.i:Ambient" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Semigroup">Semigroup</a> <a href="Diagrams-ThreeD-Attributes.html#t:Ambient">Ambient</a></span> <a href="src/Diagrams-ThreeD-Attributes.html#line-85" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:AttributeClass">AttributeClass</a> <a href="Diagrams-ThreeD-Attributes.html#t:Ambient">Ambient</a></span> <a href="src/Diagrams-ThreeD-Attributes.html#line-87" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:_Ambient" class="def">_Ambient</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="Diagrams-ThreeD-Attributes.html#t:Ambient">Ambient</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> <a href="src/Diagrams-ThreeD-Attributes.html#_Ambient" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ambient" class="def">ambient</a> :: <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:HasStyle">HasStyle</a> d => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> d -> d <a href="src/Diagrams-ThreeD-Attributes.html#ambient" class="link">Source</a></p><div class="doc"><p>Set the emittance due to ambient light.</p></div></div><div class="top"><p class="src"><a name="v:_ambient" class="def">_ambient</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Lens-39-">Lens'</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:Style">Style</a> v n) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>) <a href="src/Diagrams-ThreeD-Attributes.html#_ambient" class="link">Source</a></p><div class="doc"><p>Lens onto the possible ambience in a style.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Specular" class="def">Specular</a> <a href="src/Diagrams-ThreeD-Attributes.html#Specular" class="link">Source</a></p><div class="doc"><p>A specular highlight has two terms, the intensity, between 0 and
1, and the size. The highlight size is assumed to be the exponent
in a Phong shading model (though Backends are free to use a
different shading model). In this model, reasonable values are
between 1 and 50 or so, with higher values for shinier objects.
Physically, the intensity and the value of <code>Diffuse</code> must add up to
less than 1; this is not enforced.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Specular" class="def">Specular</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:_specularIntensity" class="def">_specularIntensity</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:_specularSize" class="def">_specularSize</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><a name="v:specularSize" class="def">specularSize</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Lens-39-">Lens'</a> <a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> <a href="src/Diagrams-ThreeD-Attributes.html#line-112" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:specularIntensity" class="def">specularIntensity</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Lens-39-">Lens'</a> <a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> <a href="src/Diagrams-ThreeD-Attributes.html#line-112" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:Highlight" class="def">Highlight</a> <a href="src/Diagrams-ThreeD-Attributes.html#Highlight" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Highlight" class="def">Highlight</a> (<a href="file:///usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Last">Last</a> <a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a>)</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Highlight" class="caption collapser" onclick="toggleSection('i:Highlight')">Instances</p><div id="section.i:Highlight" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Semigroup">Semigroup</a> <a href="Diagrams-ThreeD-Attributes.html#t:Highlight">Highlight</a></span> <a href="src/Diagrams-ThreeD-Attributes.html#line-115" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:AttributeClass">AttributeClass</a> <a href="Diagrams-ThreeD-Attributes.html#t:Highlight">Highlight</a></span> <a href="src/Diagrams-ThreeD-Attributes.html#line-117" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:_Highlight" class="def">_Highlight</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="Diagrams-ThreeD-Attributes.html#t:Highlight">Highlight</a> <a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a> <a href="src/Diagrams-ThreeD-Attributes.html#_Highlight" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:highlight" class="def">highlight</a> :: <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:HasStyle">HasStyle</a> d => <a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a> -> d -> d <a href="src/Diagrams-ThreeD-Attributes.html#highlight" class="link">Source</a></p><div class="doc"><p>Set the specular highlight.</p></div></div><div class="top"><p class="src"><a name="v:_highlight" class="def">_highlight</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Lens-39-">Lens'</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:Style">Style</a> v n) (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a>) <a href="src/Diagrams-ThreeD-Attributes.html#_highlight" class="link">Source</a></p><div class="doc"><p>Lens onto the possible specular highlight in a style</p></div></div><div class="top"><p class="src"><a name="v:highlightIntensity" class="def">highlightIntensity</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Traversal-39-">Traversal'</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:Style">Style</a> v n) <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> <a href="src/Diagrams-ThreeD-Attributes.html#highlightIntensity" class="link">Source</a></p><div class="doc"><p>Traversal over the highlight intensity of a style. If the style has
no <code><a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a></code>, setting this will do nothing.</p></div></div><div class="top"><p class="src"><a name="v:highlightSize" class="def">highlightSize</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Traversal-39-">Traversal'</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Style.html#t:Style">Style</a> v n) <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> <a href="src/Diagrams-ThreeD-Attributes.html#highlightSize" class="link">Source</a></p><div class="doc"><p>Traversal over the highlight size in a style. If the style has no
<code><a href="Diagrams-ThreeD-Attributes.html#t:Specular">Specular</a></code>, setting this will do nothing.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|