<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=TileDisplay.overlap</id>
	<title>TileDisplay.overlap - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=TileDisplay.overlap"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=TileDisplay.overlap&amp;action=history"/>
	<updated>2026-04-09T09:05:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=TileDisplay.overlap&amp;diff=799&amp;oldid=prev</id>
		<title>JoeStrout at 04:55, 19 September 2021</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=TileDisplay.overlap&amp;diff=799&amp;oldid=prev"/>
		<updated>2021-09-19T04:55:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:55, 19 September 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot; &gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;td.tileSet = file.loadImage(&amp;quot;/sys/pics/TileShapes.png&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;td.tileSet = file.loadImage(&amp;quot;/sys/pics/TileShapes.png&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;td.tileSetTileSize = 64  // size of each tile in the image&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;td.tileSetTileSize = 64  // size of each tile in the image&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;td.extent = [5, 4]  // columns, rows on screen&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/ms&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;td.extent = [5, 4]  // columns, rows on screen&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;td.clear    // clear all tiles to index 20 (a blue circle)&amp;lt;/ms&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;td.clear    // clear all tiles to index 20 (a blue circle)&amp;lt;/ms&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>JoeStrout</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=TileDisplay.overlap&amp;diff=798&amp;oldid=prev</id>
		<title>JoeStrout: Created page with &quot;In Mini Micro, the &lt;c&gt;overlap&lt;/c&gt; property of a TileDisplay controls how much the cells in the display overlap (in pixels).  The default value is 0, which means that e...&quot;</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=TileDisplay.overlap&amp;diff=798&amp;oldid=prev"/>
		<updated>2021-09-19T04:54:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;In &lt;a href=&quot;/wiki/Mini_Micro&quot; title=&quot;Mini Micro&quot;&gt;Mini Micro&lt;/a&gt;, the &amp;lt;c&amp;gt;overlap&amp;lt;/c&amp;gt; property of a &lt;a href=&quot;/wiki/TileDisplay&quot; title=&quot;TileDisplay&quot;&gt;TileDisplay&lt;/a&gt; controls how much the cells in the display overlap (in pixels).  The default value is 0, which means that e...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In [[Mini Micro]], the &amp;lt;c&amp;gt;overlap&amp;lt;/c&amp;gt; property of a [[TileDisplay]] controls how much the cells in the display overlap (in pixels).  The default value is 0, which means that each cell is positioned directly next to its neighbor, touching but not overlapping.  Positive values cause neighboring cells to overlap by that many pixels; negative values cause them to spread apart.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;c&amp;gt;overlap&amp;lt;/c&amp;gt; value can be either a simple number, used for both horizontal and vertical overlap; or a two-element list containing the desired [horizontal, vertical] overlap.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
The following code prepares a tile display with 5 columns and 4 rows...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;display(5).mode = displayMode.tile&lt;br /&gt;
td = display(5)&lt;br /&gt;
td.tileSet = file.loadImage(&amp;quot;/sys/pics/TileShapes.png&amp;quot;)&lt;br /&gt;
td.tileSetTileSize = 64  // size of each tile in the image&lt;br /&gt;
td.extent = [5, 4]  // columns, rows on screen&amp;lt;/ms&amp;gt;&lt;br /&gt;
td.clear    // clear all tiles to index 20 (a blue circle)&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After running the above code, at the command line prompt, try each of the following lines, one at a time:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;td.overlap = 10&lt;br /&gt;
td.overlap = 0&lt;br /&gt;
td.overlap = -10&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see that changing the overlap value causes the circles (which each show one cell of the display) to overlap, touch neatly, or spread apart.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Overlap+10.png|td.overlap = 10&lt;br /&gt;
Overlap0.png|td.overlap = 0&lt;br /&gt;
Overlap-10.png|td.overlap = -10&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;/div&gt;</summary>
		<author><name>JoeStrout</name></author>
		
	</entry>
</feed>