1
0
Fork 0
forked from AbleOS/ableos

Sketchpad tools cleanup

This commit is contained in:
Able 2025-02-15 08:10:33 -06:00
parent 2d4a66598d
commit 1ea3257921

View file

@ -11,27 +11,20 @@ Tools := struct {
pen_colour: render.Color = render.BLACK,
}
main := fn(): void {
sunset.client.find_server()
window := sunset.client.new(.(.(600, 400), .(200, 200), "Sketch Pad"))
if window == null {
log.error("got no window")
return
}
mouse_pos := stn.math.Vec2(int).(0, 0)
tools := Tools.{}
main := fn(): void {
tools := Tools.{}
sunset.client.find_server()
window := sunset.client.new(.(.(600, 400), .(200, 200), "Sketch Pad"))
if window == null {
log.error("got no window")
return
}
window.surface.clear(tools.bg_colour)
mouse_pos := stn.math.Vec2(int).(0, 0)
loop {
mouse := intouch.recieve_mouse_event()