Invert coloration on A button press
authorJC <dev@jacobcasper.com>
Sun, 30 Jul 2023 23:30:06 +0000 (18:30 -0500)
committerJC <dev@jacobcasper.com>
Sun, 30 Jul 2023 23:30:06 +0000 (18:30 -0500)
source/main.lua

index e69de29..2c650e1 100644 (file)
@@ -0,0 +1,5 @@
+function playdate.update()
+    if playdate.buttonJustPressed("a") then
+        playdate.display.setInverted(not playdate.display.getInverted())
+    end
+end