{
"id": "002",
"prompt": "Draw a 64x64 white square exactly centered on the screen, on a black background. Use host::display::width()/height() so it stays centered at any framebuffer size.",
"solution_rl": "fn frame(t: i32) {\n let w: i32 = host::display::width();\n let h: i32 = host::display::height();\n host::display::clear(0x000000);\n host::display::fill_rect(w / 2 - 32, h / 2 - 32, 64, 64, 0xffffff);\n host::display::present();\n}\n",
"tags": [
"display",
"fill_rect",
"dims-query"
]
}