{"id":"graphics.canvas--DrawRoundedRect","name":"DrawRoundedRect","owner":"yeho","package":"graphics.canvas","kind":"function","signature":"external DrawRoundedRect(int x, int y, int width, int height, int radius, int red, int green, int blue)","description":"Draw rounded rect.","context":"Draw 2D shapes, text, images, and composited interface content.","parameters":[{"name":"x","type":"int","description":"Supply x as int."},{"name":"y","type":"int","description":"Supply y as int."},{"name":"width","type":"int","description":"Supply width as int."},{"name":"height","type":"int","description":"Supply height as int."},{"name":"radius","type":"int","description":"Supply radius as int."},{"name":"red","type":"int","description":"Supply red as int."},{"name":"green","type":"int","description":"Supply green as int."},{"name":"blue","type":"int","description":"Supply blue as int."}],"returns":"void","members":[],"tags":["canvas","cpu","function","graphics","graphics.canvas","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/graphics/canvas/canvas.yh","line":34,"sha256":"6ccd4ec500a65b2f8a7447e335a0f6661c8b064e12be567abc0974e818716f45"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use DrawRoundedRect","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using graphics.canvas\n\n// Draw 2D shapes, text, images, and composited interface content.\nint x = 1\nint y = 1\nint width = 1\nint height = 1\nint radius = 1\nint red = 1\nint green = 1\nint blue = 1\nDrawRoundedRect(x, y, width, height, radius, red, green, blue)\nConsole.Log(\"DrawRoundedRect completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_canvas__drawroundedrect\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.canvas\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/canvas\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"a7ab6cd72afad401fa9f107636acac88a4dc9d78a1287ecfe8c6600316772373","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.canvas--DrawRoundedRect","json":"https://demonhunterlabs.com/reference/items/graphics.canvas--DrawRoundedRect.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.canvas--DrawRoundedRect.md"}
