.{log} := @use("../../../libraries/stn/src/lib.hb") sunset := @use("../../../libraries/sunset_proto/src/lib.hb") render := @use("../../../libraries/render/src/lib.hb") main := fn(): void { sunset.client.find_server() window := sunset.client.new(.(.(100, 100), .(700, 100), "Hello, World!\0")) if window == null { log.error("got no window\0") return } x := 0 loop { render.clear(window.surface, render.cyan) render.put_filled_circle(window.surface, .(50 + x % window.data.props.dimensions.x, 50), 25, render.magenta) if sunset.client.send_frame(window) == false { log.error("did not send frame\0") } x += 1 } }