module main import gg gg.start( width: 325 height: 275 window_title: 'Rounded Rectangles' frame_fn: fn (mut ctx gg.Context) { ctx.begin() // these should be rounded rectangles ctx.draw_rounded_rect_filled(10, 10, 50, 100, 5, gg.blue) ctx.draw_rounded_rect_filled(25, 25, 50, 100, 15, gg.yellow) ctx.draw_rounded_rect_filled(50, 50, 50, 100, 50, gg.red) ctx.draw_rounded_rect_filled(75, 75, 50, 100, 100, gg.green) ctx.draw_rounded_rect_filled(100, 100, 50, 100, 1000, gg.white) ctx.draw_rounded_rect_filled(110, 10, 100, 50, 5, gg.blue) ctx.draw_rounded_rect_filled(125, 25, 100, 50, 15, gg.yellow) ctx.draw_rounded_rect_filled(150, 50, 100, 50, 50, gg.red) ctx.draw_rounded_rect_filled(175, 75, 100, 50, 100, gg.green) ctx.draw_rounded_rect_filled(200, 100, 100, 50, 1000, gg.white) // this should be a perfect circle ctx.draw_rounded_rect_filled(10, 200, 50, 50, 1000, gg.magenta) // this should be a perfect square ctx.draw_rounded_rect_filled(250, 200, 50, 50, 0, gg.cyan) ctx.end() } )