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>
396396// the default sound played in `sfx()`
397397DEFAULT_SFX: number[]
398398
399+ // the list of colors in the current palette
400+ COLORS: string[]
401+
399402// Math constants
400403PI: 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)
687690setvar(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"
691699getcolor(index: number): string
Original file line number Diff line number Diff line change 11const cacheName = "luizbills.litecanvas-editor-v1" ;
2- const version = "2.81.1 " ;
2+ const version = "2.81.2 " ;
33
44const precacheResources = [
55 "/" ,
You can’t perform that action at this time.
0 commit comments