This file is indexed.

/usr/share/doc/libghc-diagrams-lib-doc/html/Diagrams-TwoD-Shapes.html is in libghc-diagrams-lib-doc 0.5-2.

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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!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.TwoD.Shapes</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-TwoD-Shapes.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Diagrams-TwoD-Shapes.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-0.5: Embedded domain-specific language for declarative graphics</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Maintainer</th><td>diagrams-discuss@googlegroups.com</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Diagrams.TwoD.Shapes</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Miscellaneous
</a></li><li><a href="#g:2">Regular polygons
</a></li><li><a href="#g:3">Other special polygons
</a></li><li><a href="#g:4">Other shapes
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Various two-dimensional shapes.
</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"><a href="#v:hrule">hrule</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:vrule">vrule</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:regPoly">regPoly</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:eqTriangle">eqTriangle</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:square">square</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Transform.html#t:Transformable">Transformable</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:pentagon">pentagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:hexagon">hexagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:septagon">septagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:octagon">octagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:nonagon">nonagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:decagon">decagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:hendecagon">hendecagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:dodecagon">dodecagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:unitSquare">unitSquare</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; p</li><li class="src short"><a href="#v:rect">rect</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Transform.html#t:Transformable">Transformable</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><a href="#v:roundedRect">roundedRect</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p</li><li class="src short"><span class="keyword">data</span>  <a href="#t:RoundedRectOpts">RoundedRectOpts</a>  = <a href="#v:RoundedRectOpts">RoundedRectOpts</a> {<ul class="subs"><li><a href="#v:radiusTL">radiusTL</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></li><li><a href="#v:radiusTR">radiusTR</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></li><li><a href="#v:radiusBL">radiusBL</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></li><li><a href="#v:radiusBR">radiusBR</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></li></ul>}</li><li class="src short"><a href="#v:roundedRect-39-">roundedRect'</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="Diagrams-TwoD-Shapes.html#t:RoundedRectOpts">RoundedRectOpts</a> -&gt; p</li></ul></div><div id="interface"><h1 id="g:1">Miscellaneous
</h1><div class="top"><p class="src"><a name="v:hrule" class="def">hrule</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#hrule" class="link">Source</a></p><div class="doc"><p>Create a centered horizontal (L-R) line of the given length.
</p></div></div><div class="top"><p class="src"><a name="v:vrule" class="def">vrule</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#vrule" class="link">Source</a></p><div class="doc"><p>Create a centered vertical (T-B) line of the given length.
</p></div></div><h1 id="g:2">Regular polygons
</h1><div class="top"><p class="src"><a name="v:regPoly" class="def">regPoly</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#regPoly" class="link">Source</a></p><div class="doc"><p>Create a regular polygon. The first argument is the number of
   sides, and the second is the <em>length</em> of the sides. (Compare to the
   <code><a href="Diagrams-TwoD-Polygons.html#v:polygon">polygon</a></code> function with a <code><a href="Diagrams-TwoD-Polygons.html#v:PolyRegular">PolyRegular</a></code> option, which produces
   polygons of a given <em>radius</em>).
</p><p>The polygon will be oriented with one edge parallel to the x-axis.
</p></div></div><div class="top"><p class="src"><a name="v:eqTriangle" class="def">eqTriangle</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#eqTriangle" class="link">Source</a></p><div class="doc"><p>An equilateral triangle, with sides of the given length and base parallel
   to the x-axis.
</p></div></div><div class="top"><p class="src"><a name="v:square" class="def">square</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Transform.html#t:Transformable">Transformable</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#square" class="link">Source</a></p><div class="doc"><p>A sqaure with its center at the origin and sides of the given
   length, oriented parallel to the axes.
</p></div></div><div class="top"><p class="src"><a name="v:pentagon" class="def">pentagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#pentagon" class="link">Source</a></p><div class="doc"><p>A regular pentagon, with sides of the given length and base
   parallel to the x-axis.
</p></div></div><div class="top"><p class="src"><a name="v:hexagon" class="def">hexagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#hexagon" class="link">Source</a></p><div class="doc"><p>A regular hexagon, with sides of the given length and base
   parallel to the x-axis.
</p></div></div><div class="top"><p class="src"><a name="v:septagon" class="def">septagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#septagon" class="link">Source</a></p><div class="doc"><p>A regular septagon, with sides of the given length and base
   parallel to the x-axis.
</p></div></div><div class="top"><p class="src"><a name="v:octagon" class="def">octagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#octagon" class="link">Source</a></p><div class="doc"><p>A regular octagon, with sides of the given length and base
   parallel to the x-axis.
</p></div></div><div class="top"><p class="src"><a name="v:nonagon" class="def">nonagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#nonagon" class="link">Source</a></p><div class="doc"><p>A regular nonagon, with sides of the given length and base
   parallel to the x-axis.
</p></div></div><div class="top"><p class="src"><a name="v:decagon" class="def">decagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#decagon" class="link">Source</a></p><div class="doc"><p>A regular decagon, with sides of the given length and base
   parallel to the x-axis.
</p></div></div><div class="top"><p class="src"><a name="v:hendecagon" class="def">hendecagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#hendecagon" class="link">Source</a></p><div class="doc"><p>A regular hendecagon, with sides of the given length and base
   parallel to the x-axis.
</p></div></div><div class="top"><p class="src"><a name="v:dodecagon" class="def">dodecagon</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#dodecagon" class="link">Source</a></p><div class="doc"><p>A regular dodecagon, with sides of the given length and base
   parallel to the x-axis.
</p></div></div><h1 id="g:3">Other special polygons
</h1><div class="top"><p class="src"><a name="v:unitSquare" class="def">unitSquare</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; p<a href="src/Diagrams-TwoD-Shapes.html#unitSquare" class="link">Source</a></p><div class="doc"><p>A sqaure with its center at the origin and sides of length 1,
   oriented parallel to the axes.
</p></div></div><div class="top"><p class="src"><a name="v:rect" class="def">rect</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Transform.html#t:Transformable">Transformable</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#rect" class="link">Source</a></p><div class="doc"><p><code>rect w h</code> is an axis-aligned rectangle of width <code>w</code> and height
   <code>h</code>, centered at the origin.
</p></div></div><h1 id="g:4">Other shapes
</h1><div class="top"><p class="src"><a name="v:roundedRect" class="def">roundedRect</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#roundedRect" class="link">Source</a></p><div class="doc"><p><code>roundedRect w h r</code> generates a closed trail, or closed path
   centered at the origin, of an axis-aligned rectangle with width
   <code>w</code>, height <code>h</code>, and circular rounded corners of radius <code>r</code>.  If
   <code>r</code> is negative the corner will be cut out in a reverse arc. If
   the size of <code>r</code> is larger than half the smaller dimension of <code>w</code>
   and <code>h</code>, then it will be reduced to fit in that range, to prevent
   the corners from overlapping.  The trail or path begins with the
   right edge and proceeds counterclockwise.  If you need to specify
   a different radius for each corner individually, use
   <code>roundedRect'</code> instead.
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:RoundedRectOpts" class="def">RoundedRectOpts</a>  <a href="src/Diagrams-TwoD-Shapes.html#RoundedRectOpts" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:RoundedRectOpts" class="def">RoundedRectOpts</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:radiusTL" class="def">radiusTL</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:radiusTR" class="def">radiusTR</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:radiusBL" class="def">radiusBL</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:radiusBR" class="def">radiusBR</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:RoundedRectOpts" class="caption collapser" onclick="toggleSection('i:RoundedRectOpts')">Instances</p><div id="section.i:RoundedRectOpts" class="show"><table><tr><td class="src"><a href="/usr/share/doc/libghc-data-default-doc/html/Data-Default.html#t:Default">Default</a> <a href="Diagrams-TwoD-Shapes.html#t:RoundedRectOpts">RoundedRectOpts</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:roundedRect-39-" class="def">roundedRect'</a> :: (<a href="Diagrams-Path.html#t:PathLike">PathLike</a> p, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> p ~ <a href="Diagrams-TwoD-Types.html#t:R2">R2</a>) =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="Diagrams-TwoD-Shapes.html#t:RoundedRectOpts">RoundedRectOpts</a> -&gt; p<a href="src/Diagrams-TwoD-Shapes.html#roundedRect%27" class="link">Source</a></p><div class="doc"><p><code>roundedRect'</code> works like <code>roundedRect</code> but allows you to set the radius of
   each corner indivually, using <code>RoundedRectOpts</code>. The default corner radius is 0.
   Each radius can also be negative, which results in the curves being reversed
   to be inward instead of outward.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>