summaryrefslogtreecommitdiff
path: root/manuals/chickadee/Lines-and-Shapes.html
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-12-12 09:20:10 -0500
committerDavid Thompson <dthompson2@worcester.edu>2018-12-12 09:20:10 -0500
commitf16fed3d50fd3d56deb46a3d4641a81460e389de (patch)
tree71659ed643b65eadb17110b3f8f0c5d5cfdd3031 /manuals/chickadee/Lines-and-Shapes.html
parentc4b418c2dcfba3c741f67058a51a3e490aa4b297 (diff)
Update Chickadee manual and home page for 0.3.0.
Better late than never!
Diffstat (limited to 'manuals/chickadee/Lines-and-Shapes.html')
-rw-r--r--manuals/chickadee/Lines-and-Shapes.html44
1 files changed, 35 insertions, 9 deletions
diff --git a/manuals/chickadee/Lines-and-Shapes.html b/manuals/chickadee/Lines-and-Shapes.html
index 13232ab..05ad725 100644
--- a/manuals/chickadee/Lines-and-Shapes.html
+++ b/manuals/chickadee/Lines-and-Shapes.html
@@ -16,22 +16,22 @@ Foundation Web site at http://www.gnu.org/licenses/fdl.html.
The document was typeset with
http://www.texinfo.org/ (GNU Texinfo).
-->
-<!-- Created by GNU Texinfo 6.3, http://www.gnu.org/software/texinfo/ -->
+<!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
<head>
-<title>The Chickadee Game Toolkit: Lines and Shapes</title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Lines and Shapes (The Chickadee Game Toolkit)</title>
-<meta name="description" content="The Chickadee Game Toolkit: Lines and Shapes">
-<meta name="keywords" content="The Chickadee Game Toolkit: Lines and Shapes">
+<meta name="description" content="Lines and Shapes (The Chickadee Game Toolkit)">
+<meta name="keywords" content="Lines and Shapes (The Chickadee Game Toolkit)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<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="Fonts.html#Fonts" rel="next" title="Fonts">
-<link href="Sprites.html#Sprites" rel="prev" title="Sprites">
+<link href="Tile-Maps.html#Tile-Maps" rel="prev" title="Tile Maps">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
@@ -90,18 +90,18 @@ ul.no-bullet {list-style: none}
<a name="Lines-and-Shapes"></a>
<div class="header">
<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> &nbsp; [<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="Tile-Maps.html#Tile-Maps" accesskey="p" rel="prev">Tile Maps</a>, Up: <a href="Graphics.html#Graphics" accesskey="u" rel="up">Graphics</a> &nbsp; [<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.4 Lines and Shapes</h4>
+<h4 class="subsection">2.3.5 Lines and Shapes</h4>
<p>Sprites are fun, but sometimes simple, untextured lines and polygons
are desired. That&rsquo;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>
+<dt><a name="index-draw_002dline"></a>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>
@@ -113,6 +113,32 @@ the <var>shader</var> argument to override the built-in line segment
shader.
</p></dd></dl>
+<dl>
+<dt><a name="index-draw_002dbezier_002dcurve"></a>Procedure: <strong>draw-bezier-curve</strong> <em><var>bezier</var> [#:segments 32] [#:control-points?] [#:tangents?] [#:control-point-size 8] [#:control-point-color yellow] [#:tangent-color yellow] [#:thickness 0.5] [#:feather 1.0] [#:matrix]</em></dt>
+<dd>
+<p>Draw the curve defined by <var>bezier</var> using a resolution of N
+<var>segments</var>. When <var>control-points?</var> is <code>#t</code>, the control
+points are rendered as squares of size <var>control-point-size</var> pixels
+and a color of <var>control-point-color</var>. When <var>tangents?</var> is
+<code>#t</code>, the tangent lines from terminal point to control point are
+rendered using the color <var>tangent-color</var>.
+</p>
+<p>All line segments rendered use <code>draw-line</code>, and thus the
+arguments <var>thickness</var> and <var>feather</var> have the same effect as in
+that procedure.
+</p>
+<p>A custom <var>matrix</var> may be passed for applications that require more
+control over the final output.
+</p></dd></dl>
+
+<dl>
+<dt><a name="index-draw_002dbezier_002dpath"></a>Procedure: <strong>draw-bezier-path</strong> <em><var>path</var> [#:segments 32] [#:control-points?] [#:tangents?] [#:control-point-size 8] [#:control-point-color yellow] [#:tangent-color yellow] [#:thickness 0.5] [#:feather 1.0] [#:matrix]</em></dt>
+<dd>
+<p>Render <var>path</var>, a list of bezier curves. See the documentation for
+<code>draw-bezier-curve</code> for an explanation of all the keyword
+arguments.
+</p></dd></dl>
+