summaryrefslogtreecommitdiff
path: root/manuals/chickadee/Sprites.html
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-04-13 11:30:50 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-04-13 11:30:50 -0400
commitce9d6e8ad28b2d84d1a292a871c23b66a4654b54 (patch)
treeade44e7bb7b891c9ae0ceba18633ef4b2a911a7c /manuals/chickadee/Sprites.html
parent2a30eb2a2d5472be3df1254d5d4d04310314e628 (diff)
Add new guile-sdl2 and chickadee releases.
Diffstat (limited to 'manuals/chickadee/Sprites.html')
-rw-r--r--manuals/chickadee/Sprites.html47
1 files changed, 5 insertions, 42 deletions
diff --git a/manuals/chickadee/Sprites.html b/manuals/chickadee/Sprites.html
index 269a041..93a0967 100644
--- a/manuals/chickadee/Sprites.html
+++ b/manuals/chickadee/Sprites.html
@@ -32,7 +32,7 @@ http://www.texinfo.org/ (GNU Texinfo).
<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="Tile-Maps.html" rel="next" title="Tile Maps">
+<link href="9_002dPatches.html" rel="next" title="9-Patches">
<link href="Textures.html" rel="prev" title="Textures">
<style type="text/css">
<!--
@@ -82,7 +82,7 @@ ul.no-bullet {list-style: none}
<body lang="en">
<span id="Sprites"></span><div class="header">
<p>
-Next: <a href="Tile-Maps.html" accesskey="n" rel="next">Tile Maps</a>, Previous: <a href="Textures.html" accesskey="p" rel="prev">Textures</a>, Up: <a href="Graphics.html" 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" title="Index" rel="index">Index</a>]</p>
+Next: <a href="9_002dPatches.html" accesskey="n" rel="next">9-Patches</a>, Previous: <a href="Textures.html" accesskey="p" rel="prev">Textures</a>, Up: <a href="Graphics.html" 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" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<span id="Sprites-1"></span><h4 class="subsection">2.3.3 Sprites</h4>
@@ -98,7 +98,7 @@ interface for working with sprites. Bitmaps are stored in textures
<code>draw-sprite</code> procedure.
</p>
<dl>
-<dt id="index-draw_002dsprite">Procedure: <strong>draw-sprite</strong> <em>texture position [#:tint white] [#:origin] [#:scale] [#:rotation] [#:blend-mode alpha] [#:rect]</em></dt>
+<dt id="index-draw_002dsprite">Procedure: <strong>draw-sprite</strong> <em>texture position [#:tint white] [#:origin] [#:scale] [#:rotation] [#:blend-mode] [#:rect]</em></dt>
<dd>
<p>Draw <var>texture</var> at <var>position</var>.
</p>
@@ -173,52 +173,15 @@ parent is the batch texture may be specified as <var>texture-region</var>.
</p></dd></dl>
<dl>
-<dt id="index-draw_002dsprite_002dbatch">Procedure: <strong>draw-sprite-batch</strong> <em>batch [#:blend-mode <code>alpha</code>]</em></dt>
+<dt id="index-draw_002dsprite_002dbatch">Procedure: <strong>draw-sprite-batch</strong> <em>batch [#:blend-mode]</em></dt>
<dd><p>Render <var>batch</var> using <var>blend-mode</var>. Alpha blending is used by
default.
</p></dd></dl>
-<p>With a basic sprite abstraction in place, it&rsquo;s possible to build other
-abstractions on top of it. One such example is the &ldquo;nine patch&rdquo;. A
-nine patch is a sprite that can be rendered at various sizes without
-becoming distorted. This is achieved by dividing up the sprite into
-nine regions:
-</p>
-<ul>
-<li> the center, which can be scaled horizontally and vertically
-</li><li> the four corners, which can never be scaled
-</li><li> the left and right sides, which can be scaled vertically
-</li><li> the top and bottom sides, which can be scaled horizontally
-</li></ul>
-
-<p>The one caveat is that the bitmap regions must be designed in such a
-way so that they are not distorted when stretched along the affected
-axes. For example, that means that the top and bottom sides could
-have varying colored pixels vertically, but not horizontally.
-</p>
-<p>The most common application of this technique is for graphical user
-interface widgets like buttons and dialog boxes. By using a nine
-patch, they can be rendered at any size without unappealing scaling
-artifacts.
-</p>
-<dl>
-<dt id="index-draw_002dnine_002dpatch">Procedure: <strong>draw-nine-patch</strong> <em>texture rect [#:margin 0] [#:top-margin margin] [#:bottom-margin margin] [#:left-margin margin] [#:right-margin margin] [#:origin] [#:scale] [#:rotation] [#:blend-mode alpha] [#:tint white]</em></dt>
-<dd>
-<p>Draw a nine patch sprite. A nine patch sprite renders <var>texture</var>
-as a <var>width</var> x <var>height</var> rectangle whose stretchable areas are
-defined by the given margin measurements <var>top-margin</var>,
-<var>bottom-margin</var>, <var>left-margin</var>, and <var>right-margin</var>. The
-<var>margin</var> argument may be used to configure all four margins at
-once.
-</p>
-<p>Refer to <code>draw-sprite</code> (see <a href="#Sprites">Sprites</a>) for information about
-the other arguments.
-</p></dd></dl>
-
<hr>
<div class="header">
<p>
-Next: <a href="Tile-Maps.html" accesskey="n" rel="next">Tile Maps</a>, Previous: <a href="Textures.html" accesskey="p" rel="prev">Textures</a>, Up: <a href="Graphics.html" 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" title="Index" rel="index">Index</a>]</p>
+Next: <a href="9_002dPatches.html" accesskey="n" rel="next">9-Patches</a>, Previous: <a href="Textures.html" accesskey="p" rel="prev">Textures</a>, Up: <a href="Graphics.html" 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" title="Index" rel="index">Index</a>]</p>
</div>