#63 rectangle element

This commit is contained in:
Mikayla Fischler
2022-06-08 12:27:28 -04:00
parent 8ea75b9501
commit ce227a175a
3 changed files with 80 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ function element.new(args)
local protected = {
window = nil, ---@type table
fg_bg = core.graphics.cpair(colors.white, colors.black),
frame = core.graphics.gframe(1, 1, 1, 1)
}
@@ -56,6 +57,7 @@ function element.new(args)
protected.window.setBackgroundColor(args.fg_bg.bkg)
protected.window.setTextColor(args.fg_bg.fgd)
protected.window.clear()
protected.fg_bg = args.fg_bg
end
-- record position