From 4e00ffe2bb6e81829b642a92ffcc8eb31ef1f641 Mon Sep 17 00:00:00 2001 From: JC Date: Sun, 30 Jul 2023 18:57:39 -0500 Subject: [PATCH] Draw a rectangle to the screen --- source/main.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/main.lua b/source/main.lua index 2c650e1..c5dbbd8 100644 --- a/source/main.lua +++ b/source/main.lua @@ -1,4 +1,11 @@ +local pd = playdate +local gfx = playdate.graphics + +local r = pd.geometry.rect.new(0, 0, 32, 32) + + function playdate.update() + gfx.drawRect(r) if playdate.buttonJustPressed("a") then playdate.display.setInverted(not playdate.display.getInverted()) end -- 2.20.1