This commit is contained in:
Able 2024-11-10 06:18:23 -06:00
parent 7da32b263f
commit 8c7b95277d

View file

@ -88,6 +88,9 @@ main := fn(): int {
render.put_rect(screen, .(0, screen.height - 21), .(screen.width - 1, 20), render.white)
}
// Screen border
render.put_rect(screen, .(0, 0), .(screen.width - 1, screen.height - 1), render.white)
{
mouse_event := intouch.recieve_mouse_event()
//
@ -130,8 +133,6 @@ main := fn(): int {
}
}
render.put_rect(screen, .(0, 0), .(screen.width - 1, screen.height - 1), render.white)
// render mouse
lum := render.indexptr(screen, mouse_x, mouse_y)
if lum.r / 3 + lum.g / 3 + lum.b / 3 < 128 {