diff options
Diffstat (limited to 'manuals/chickadee/Colors.html')
-rw-r--r-- | manuals/chickadee/Colors.html | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/manuals/chickadee/Colors.html b/manuals/chickadee/Colors.html index a7fc10f..4a361b1 100644 --- a/manuals/chickadee/Colors.html +++ b/manuals/chickadee/Colors.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>Colors (The Chickadee Game Toolkit)</title> -<meta name="description" content="Colors (The Chickadee Game Toolkit)"> -<meta name="keywords" content="Colors (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="Graphics.html" rel="up" title="Graphics"> -<link href="Textures.html" rel="next" title="Textures"> -<link href="Graphics.html" rel="prev" title="Graphics"> +<meta name="description" content="Colors (The Chickadee Game Toolkit)" /> +<meta name="keywords" content="Colors (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="Graphics.html" rel="up" title="Graphics" /> +<link href="Textures.html" rel="next" title="Textures" /> +<link href="Graphics.html" rel="prev" title="Graphics" /> <style type="text/css"> -<!-- +<!-- 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} } } ---> +--> </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="Textures.html" accesskey="n" rel="next">Textures</a>, Up: <a href="Graphics.html" accesskey="u" rel="up">Graphics</a> [<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="Colors-1"></span><h4 class="subsection">5.3.1 Colors</h4> <p>Merriam-Webster defines color as “a phenomenon of light (such as red, @@ -106,18 +106,18 @@ depending on what’s most convenient. The first is <code>make-color</code> where you specify each channel exactly as described above. This is fully opaque magenta: </p> -<div class="example"> -<pre class="example">(make-color 1.0 0.0 1.0 1.0) +<div class="lisp"> +<pre class="lisp"><span class="syntax-open">(</span><span class="syntax-symbol">make-color</span> <span class="syntax-symbol">1.0</span> <span class="syntax-symbol">0.0</span> <span class="syntax-symbol">1.0</span> <span class="syntax-symbol">1.0</span><span class="syntax-close">)</span> </pre></div> <p>Many people are used to representing colors as 6 or 8 digit hexadecimal numbers, so Chickadee also allows that. Here’s magenta, again: </p> -<div class="example"> -<pre class="example">(rgba #xFF00FFFF) -(rgb #xFF00FF) ; equivalent to the above -</pre></div> +<div class="lisp"> +<pre class="lisp"><span class="syntax-open">(</span><span class="syntax-symbol">rgba</span> <span class="syntax-symbol">#xFF00FFFF</span><span class="syntax-close">)</span> +<span class="syntax-open">(</span><span class="syntax-symbol">rgb</span> <span class="syntax-symbol">#xFF00FF</span><span class="syntax-close">)</span> <span class="syntax-comment">; equivalent to the above +</span></pre></div> <dl> <dt id="index-make_002dcolor">Procedure: <strong>make-color</strong> <em>r g b a</em></dt> @@ -179,11 +179,11 @@ transparent. <dd><p>Convert the hexadecimal color code in the string <var>s</var> to a color object. The following string formats are supported: </p> -<div class="example"> -<pre class="example">(string->color "#FF00FFFF") -(string->color "FF00FFFF") -(string->color "#FF00FF") -(string->color "FF00FF") +<div class="lisp"> +<pre class="lisp"><span class="syntax-open">(</span><span class="syntax-symbol">string->color</span> <span class="syntax-string">"#FF00FFFF"</span><span class="syntax-close">)</span> +<span class="syntax-open">(</span><span class="syntax-symbol">string->color</span> <span class="syntax-string">"FF00FFFF"</span><span class="syntax-close">)</span> +<span class="syntax-open">(</span><span class="syntax-symbol">string->color</span> <span class="syntax-string">"#FF00FF"</span><span class="syntax-close">)</span> +<span class="syntax-open">(</span><span class="syntax-symbol">string->color</span> <span class="syntax-string">"FF00FF"</span><span class="syntax-close">)</span> </pre></div> </dd></dl> @@ -365,7 +365,7 @@ factor <var>alpha</var>, a number in the range [0, 1]. <dt id="index-tango_002daluminium_002d6">Variable: <strong>tango-aluminium-6</strong></dt> </dl> -<hr> +<hr /> <div class="header"> <p> Next: <a href="Textures.html" accesskey="n" rel="next">Textures</a>, Up: <a href="Graphics.html" accesskey="u" rel="up">Graphics</a> [<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> |