File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,9 @@ <h2><a id="globals">Global Variables</a></h2>
396
396
// the default sound played in `sfx()`
397
397
DEFAULT_SFX: number[]
398
398
399
+ // the list of colors in the current palette
400
+ COLORS: string[]
401
+
399
402
// Math constants
400
403
PI: number // approximately 3.14 radians (180°)
401
404
@@ -686,6 +689,11 @@ <h2><a id="engine-api">Engine API</a></h2>
686
689
// Create or update an global variables (and instance properties)
687
690
setvar(name: string, value: any): void
688
691
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
+
689
697
// Gets the color value given its index.
690
698
// example: getcolor(0) returns "#111"
691
699
getcolor(index: number): string
Original file line number Diff line number Diff line change 1
1
const cacheName = "luizbills.litecanvas-editor-v1" ;
2
- const version = "2.81.1 " ;
2
+ const version = "2.81.2 " ;
3
3
4
4
const precacheResources = [
5
5
"/" ,
You can’t perform that action at this time.
0 commit comments