add convenience function to draw a semi-transparent rectangle

This commit is contained in:
Alessandro Mauri 2025-09-30 22:17:08 +02:00
parent 6a7dd998a6
commit a9642f28bd

View File

@ -177,3 +177,5 @@ fn void? Ctx.push_update_atlas(&ctx, Atlas* atlas)
ctx.push_cmd(&up, -1)!;
}
macro Ctx.dbg_rect(&ctx, Rect r, uint c = 0xff000042u) => ctx.push_rect(r, int.max, &&(Style){.bg=c.to_rgba()})!!;