Skip to content

Commit f2bba34

Browse files
committed
update docs
1 parent 66e7ad7 commit f2bba34

File tree

2 files changed

+31
-21
lines changed

2 files changed

+31
-21
lines changed

public/about.html

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@
4747
font-size: 90%;
4848
font-variant-ligatures: none;
4949
}
50+
blockquote {
51+
margin: 0;
52+
padding: 0.5em;
53+
border-left: 4px solid rgba(0,0,0,.5);
54+
background-color: rgba(0,0,0,.1);;
55+
opacity: 0.75;
56+
line-height: 1.5;
57+
}
5058
svg {
5159
width: 1em;
5260
height: 1em;
@@ -263,43 +271,46 @@ <h2>Basic boilerplate</h2>
263271

264272
function resized(newScale) {
265273
// called when the canvas is resized
266-
// use W and H to get the new width and height of the canvas
274+
// use `W` and `H` to get the new width and height of the canvas
275+
}
276+
277+
function tapped(x, y, touchId) {
278+
// called when a tap (click or touch) happens
279+
// equivalent to "click" browser events
280+
// ---
281+
// Notes:
282+
// - The "touchId" argument is used to handle multiple touches
283+
// - Each touch has a unique touchId >= 1
284+
// - The touchId of mouse clicks always will be 0 (zero)
267285
}
268286

269287
function tap(x, y, touchId) {
270-
// called when a tap (click/touch) starts
288+
// called when a tap starts
271289
// equivalent to "mousedown" and "touchstart" browser events
272-
273-
// Notes:
274-
// - "touchId" is used to handle multiple touches
275-
// - each touch has a unique touchId >= 1
276-
// - mouse's touchId always equal to 0 (zero)
277290
}
278291

279292
function untap(x, y, touchId) {
280-
// called when a tap end
293+
// called when a tap ends
281294
// equivalent to "mouseup" and "touchend" browser events
282295
}
283296

284297
function tapping(x, y, touchId) {
285-
// called when a tap moves
286-
// equivalent to "mousemove" and "touchmove" browser events
287-
}
288-
289-
function tapped(x, y, touchId) {
290-
// called when a tap stars and ends in a short time
291-
// equivalent to "click" browser events (only for left mouse clicks)
298+
// called when an active tap moves
292299
}
293300
</code></pre>
294301

295302
<h2><a id="colors">Default Colors</a></h2>
296303

304+
<p>
305+
Every time a function asks for a color, choose must choose one of these numbers.
306+
</p>
307+
297308
<img src="images/colors.png" alt="Default Color Palette" />
298309

299-
<p>Download palette: <a href="/misc/litecanvas-palette.gpl">GPL</a> <a href="/misc/litecanvas-palette.json" download>JSON</a></p>
310+
<p>Download: <a href="/misc/litecanvas-palette.gpl">palette.gpl</a> or <a href="/misc/litecanvas-palette.json" download>palette.json</a></p>
300311

301312
<p>
302-
<em>Note: Every time a function asks for a color argument, choose one of these numbers.</em>
313+
<blockquote><strong>Note:</strong> You can change the color palette using the <code>pal()</code> function (see below).</blockquote>
303314
</p>
304315

305316
<h2><a id="settings">Game Configuration</a></h2>
@@ -720,8 +731,7 @@ <h3>Extra packages</h3>
720731
https://github.com/litecanvas/plugin-frame-rate-meter
721732
</a>
722733
</strong>
723-
<br>
724-
<small>Tip: Call <strong><code>FPS_METER.display(false)</code></strong> in your function <code>init()</code> to disable it.</small>
734+
<blockquote><small>Tip: Call <strong><code>FPS_METER.display(false)</code></strong> in your function <code>init()</code> to disable it.</small></blockquote>
725735
</li>
726736
<li>
727737
<strong>
@@ -730,7 +740,7 @@ <h3>Extra packages</h3>
730740
</a>
731741
</strong>
732742
<br>
733-
<small>Tip: Call <strong><code>textfont(PIXEL_FONT_BASIC)</code></strong> or <strong><code>textfont(PIXEL_FONT_MINI)</code></strong> to use pixel fonts.</small>
743+
<blockquote><small>Tip: Call <strong><code>textfont(PIXEL_FONT_BASIC)</code></strong> or <strong><code>textfont(PIXEL_FONT_MINI)</code></strong> to use pixel fonts.</small></blockquote>
734744
</li>
735745
<li>
736746
<strong>

public/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const cacheName = "luizbills.litecanvas-editor-v1";
2-
const version = "2025.7.23.2";
2+
const version = "2025.7.23.3";
33

44
const precacheResources = [
55
"/",

0 commit comments

Comments
 (0)