upgrading game apis (#13)

This commit is contained in:
Peli de Halleux
2017-12-14 10:34:32 -08:00
committed by GitHub
parent 5a6cbf2639
commit a5f8e9a643
3 changed files with 131 additions and 68 deletions

View File

@ -286,6 +286,10 @@ namespace pxsim.led {
runtime.queueDisplayUpdate()
}
export function displayMode() : DisplayMode {
return board().ledMatrixState.displayMode;
}
export function screenshot(): Image {
let img = createImage(5)
board().ledMatrixState.image.copyTo(0, 5, img, 0);