Difference between revisions of "DisplayMode"
Jump to navigation
Jump to search
(Created page with "<c>displayMode</c> is a Mini Micro global function that returns a map that contains a number for every supported mode in the display system. {| class="wikitable" |- !...") |
m |
||
Line 23: | Line 23: | ||
<ms>print displayMode.str(display(2).mode) // display name of the mode of display 2 | <ms>print displayMode.str(display(2).mode) // display name of the mode of display 2 | ||
display(2).mode = displayMode.sprite // change display 2 to sprite mode</ms> | display(2).mode = displayMode.sprite // change display 2 to sprite mode</ms> | ||
+ | |||
+ | [[Category:Mini Micro]] |
Latest revision as of 02:17, 30 January 2025
displayMode
is a Mini Micro global function that returns a map that contains a number for every supported mode in the display system.
Key | Value | Meaning |
---|---|---|
off |
0 | Display is off |
solidColor |
1 | SolidColorDisplay |
text |
2 | TextDisplay |
pixel |
3 | PixelDisplay |
tile |
4 | TileDisplay |
sprite |
5 | SpriteDisplay |
str |
function(mode) | equivalent to displayMode.indexOf(mode)
|
Example
print displayMode.str(display(2).mode) // display name of the mode of display 2
display(2).mode = displayMode.sprite // change display 2 to sprite mode