summaryrefslogtreecommitdiff
path: root/manuals/chickadee/Invoking-chickadee-play.html
diff options
context:
space:
mode:
Diffstat (limited to 'manuals/chickadee/Invoking-chickadee-play.html')
-rw-r--r--manuals/chickadee/Invoking-chickadee-play.html50
1 files changed, 29 insertions, 21 deletions
diff --git a/manuals/chickadee/Invoking-chickadee-play.html b/manuals/chickadee/Invoking-chickadee-play.html
index 2841c18..786626a 100644
--- a/manuals/chickadee/Invoking-chickadee-play.html
+++ b/manuals/chickadee/Invoking-chickadee-play.html
@@ -1,6 +1,6 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
-<!-- Copyright (C) 2017-2021 David Thompson davet@gnu.org
+<!-- Copyright (C) 2017-2023 David Thompson dthompson2@worcester.edu
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
@@ -17,25 +17,25 @@ 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.7, http://www.gnu.org/software/texinfo/ -->
+ -->
+<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Invoking chickadee play (The Chickadee Game Toolkit)</title>
-<meta name="description" content="Invoking chickadee play (The Chickadee Game Toolkit)">
-<meta name="keywords" content="Invoking chickadee play (The Chickadee Game Toolkit)">
-<meta name="resource-type" content="document">
-<meta name="distribution" content="global">
-<meta name="Generator" content="makeinfo">
-<link href="index.html" rel="start" title="Top">
-<link href="Index.html" rel="index" title="Index">
-<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
-<link href="Command-Line-Interface.html" rel="up" title="Command Line Interface">
-<link href="Invoking-chickadee-bundle.html" rel="next" title="Invoking chickadee bundle">
-<link href="Command-Line-Interface.html" rel="prev" title="Command Line Interface">
+<meta name="description" content="Invoking chickadee play (The Chickadee Game Toolkit)" />
+<meta name="keywords" content="Invoking chickadee play (The Chickadee Game Toolkit)" />
+<meta name="resource-type" content="document" />
+<meta name="distribution" content="global" />
+<meta name="Generator" content="makeinfo" />
+<link href="index.html" rel="start" title="Top" />
+<link href="Index.html" rel="index" title="Index" />
+<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents" />
+<link href="Command-Line-Interface.html" rel="up" title="Command Line Interface" />
+<link href="Invoking-chickadee-bundle.html" rel="next" title="Invoking chickadee bundle" />
+<link href="Command-Line-Interface.html" rel="prev" title="Command Line Interface" />
<style type="text/css">
-<!--
+&lt;!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
@@ -72,9 +72,9 @@ ul.no-bullet {list-style: none}
}
}
--->
+--&gt;
</style>
-<link rel="stylesheet" type="text/css" href="https://dthompson.us/css/dthompson.css">
+<link rel="stylesheet" type="text/css" href="https://dthompson.us/css/dthompson.css" />
</head>
@@ -84,7 +84,7 @@ ul.no-bullet {list-style: none}
<p>
Next: <a href="Invoking-chickadee-bundle.html" accesskey="n" rel="next">Invoking chickadee bundle</a>, Up: <a href="Command-Line-Interface.html" accesskey="u" rel="up">Command Line Interface</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html" title="Index" rel="index">Index</a>]</p>
</div>
-<hr>
+<hr />
<span id="Invoking-chickadee-play-1"></span><h3 class="section">3.1 Invoking <code>chickadee play</code></h3>
<p>The <code>chickadee play</code> command is used to open a window and run
@@ -166,6 +166,14 @@ controlled via the following options:
<p>Update the game <var>n</var> times per second.
</p>
</dd>
+<dt><code>--clear-color=<var>color</var></code></dt>
+<dt><code>-c <var>color</var></code></dt>
+<dd>
+<p>Set the screen clear color to <var>color</var>, a hex code in the format
+<code>#RRGGBB</code>. For example, to set the clear color to black, pass
+<code>--clear-color=#000000</code>.
+</p>
+</dd>
<dt><code>--repl</code></dt>
<dd>
<p>Launch a REPL in the terminal. This will allow the game environment
@@ -206,7 +214,7 @@ Here&rsquo;s what a &ldquo;hello, world&rdquo; Chickadee program looks like in W
</p>
<div class="example">
<pre class="example">define : draw alpha
- draw-text &quot;Hello, world!&quot; : vec2 260.0 240.0
+ draw-text "Hello, world!" : vec2 260.0 240.0
</pre></div>
<p>Assuming the above code is saved to a <samp>hello.w</samp> file,
@@ -219,7 +227,7 @@ Here&rsquo;s what a &ldquo;hello, world&rdquo; Chickadee program looks like in W
</dd>
</dl>
-<hr>
+<hr />
<div class="header">
<p>
Next: <a href="Invoking-chickadee-bundle.html" accesskey="n" rel="next">Invoking chickadee bundle</a>, Up: <a href="Command-Line-Interface.html" accesskey="u" rel="up">Command Line Interface</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html" title="Index" rel="index">Index</a>]</p>