Skip to content

Commit 1376343

Browse files
committed
update docs
1 parent 173214e commit 1376343

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

public/about.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ <h2><a id="globals">Global Variables</a></h2>
396396
// the default sound played in `sfx()`
397397
DEFAULT_SFX: number[]
398398

399+
// the list of colors in the current palette
400+
COLORS: string[]
401+
399402
// Math constants
400403
PI: number // approximately 3.14 radians (180°)
401404

@@ -686,6 +689,11 @@ <h2><a id="engine-api">Engine API</a></h2>
686689
// Create or update an global variables (and instance properties)
687690
setvar(name: string, value: any): void
688691

692+
// Update or reset the palette color
693+
// example: pal(['#000', '#FFF']) is a 1-bit color palette
694+
// example: pal() resets the default color palette
695+
pal(index: string[]): void
696+
689697
// Gets the color value given its index.
690698
// example: getcolor(0) returns "#111"
691699
getcolor(index: number): string

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 = "2.81.1";
2+
const version = "2.81.2";
33

44
const precacheResources = [
55
"/",

0 commit comments

Comments
 (0)