diff options
author | David Thompson <dthompson2@worcester.edu> | 2018-03-10 20:32:18 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2018-03-10 20:32:32 -0500 |
commit | af2872325ed461252303ec8b7987058b664843f1 (patch) | |
tree | cb710d0a186a2617ab86b98a5bdb9acd4cbe6934 /manuals/chickadee/Lines-and-Shapes.html | |
parent | 89a3558fb9b094b9a92055e98ad655e9bb799eba (diff) |
Update Chickadee manual.
Diffstat (limited to 'manuals/chickadee/Lines-and-Shapes.html')
-rw-r--r-- | manuals/chickadee/Lines-and-Shapes.html | 46 |
1 files changed, 43 insertions, 3 deletions
diff --git a/manuals/chickadee/Lines-and-Shapes.html b/manuals/chickadee/Lines-and-Shapes.html index 01fac7b..13232ab 100644 --- a/manuals/chickadee/Lines-and-Shapes.html +++ b/manuals/chickadee/Lines-and-Shapes.html @@ -30,7 +30,7 @@ http://www.texinfo.org/ (GNU Texinfo). <link href="Index.html#Index" rel="index" title="Index"> <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> <link href="Graphics.html#Graphics" rel="up" title="Graphics"> -<link href="Textures.html#Textures" rel="next" title="Textures"> +<link href="Fonts.html#Fonts" rel="next" title="Fonts"> <link href="Sprites.html#Sprites" rel="prev" title="Sprites"> <style type="text/css"> <!-- @@ -57,8 +57,31 @@ span.nolinebreak {white-space: nowrap} span.roman {font-family: initial; font-weight: normal} span.sansserif {font-family: sans-serif; font-weight: normal} ul.no-bullet {list-style: none} +@media (min-width: 1140px) { + body { + margin-left: 14rem; + margin-right: 4rem; + max-width: 52rem; + } +} + +@media (min-width: 800px) and (max-width: 1140px) { + body { + margin-left: 6rem; + margin-right: 4rem; + max-width: 52rem; + } +} + +@media (max-width: 800px) { + body { + margin: 1rem; + } +} + --> </style> +<link rel="stylesheet" type="text/css" href="https://dthompson.us/css/dthompson.css"> </head> @@ -67,11 +90,28 @@ ul.no-bullet {list-style: none} <a name="Lines-and-Shapes"></a> <div class="header"> <p> -Next: <a href="Textures.html#Textures" accesskey="n" rel="next">Textures</a>, Previous: <a href="Sprites.html#Sprites" accesskey="p" rel="prev">Sprites</a>, Up: <a href="Graphics.html#Graphics" accesskey="u" rel="up">Graphics</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html#Index" title="Index" rel="index">Index</a>]</p> +Next: <a href="Fonts.html#Fonts" accesskey="n" rel="next">Fonts</a>, Previous: <a href="Sprites.html#Sprites" accesskey="p" rel="prev">Sprites</a>, Up: <a href="Graphics.html#Graphics" accesskey="u" rel="up">Graphics</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html#Index" title="Index" rel="index">Index</a>]</p> </div> <hr> <a name="Lines-and-Shapes-1"></a> -<h4 class="subsection">2.4.3 Lines and Shapes</h4> +<h4 class="subsection">2.4.4 Lines and Shapes</h4> + +<p>Sprites are fun, but sometimes simple, untextured lines and polygons +are desired. That’s where the <code>(chickadee render shapes)</code> module +comes in! +</p> +<dl> +<dt><a name="index-draw_002dline"></a>Scheme Procedure: <strong>draw-line</strong> <em><var>start</var> <var>end</var> [#:thickness 0.5] [#:feather 1.0] [#:cap round] [#:color] [#:shader]</em></dt> +<dd> +<p>Draw a line segment from <var>start</var> to <var>end</var>. The line will be +<var>thickness</var> pixels thick with an antialiased border <var>feather</var> +pixels wide. The line will be colored <var>color</var>. <var>cap</var> +specifies the type of end cap that should be used to terminate the +lines, either <code>none</code>, <code>butt</code>, <code>square</code>, <code>round</code>, +<code>triangle-in</code>, or <code>triangle-out</code>. Advanced users may use +the <var>shader</var> argument to override the built-in line segment +shader. +</p></dd></dl> |