{"id":"graphics.canvas--DrawRectGradientHRgba","name":"DrawRectGradientHRgba","owner":"yeho","package":"graphics.canvas","kind":"function","signature":"external DrawRectGradientHRgba(int x, int y, int width, int height, int startRed, int startGreen, int startBlue, int startAlpha, int endRed, int endGreen, int endBlue, int endAlpha)","description":"Draw rect gradient hrgba.","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":"startRed","type":"int","description":"Supply start red as int."},{"name":"startGreen","type":"int","description":"Supply start green as int."},{"name":"startBlue","type":"int","description":"Supply start blue as int."},{"name":"startAlpha","type":"int","description":"Supply start alpha as int."},{"name":"endRed","type":"int","description":"Supply end red as int."},{"name":"endGreen","type":"int","description":"Supply end green as int."},{"name":"endBlue","type":"int","description":"Supply end blue as int."},{"name":"endAlpha","type":"int","description":"Supply end alpha 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":51,"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 DrawRectGradientHRgba","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 startRed = 1\nint startGreen = 1\nint startBlue = 1\nint startAlpha = 1\nint endRed = 1\nint endGreen = 1\nint endBlue = 1\nint endAlpha = 1\nDrawRectGradientHRgba(x, y, width, height, startRed, startGreen, startBlue, startAlpha, endRed, endGreen, endBlue, endAlpha)\nConsole.Log(\"DrawRectGradientHRgba completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_canvas__drawrectgradienthrgba\"\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":"5117e8f14125b08e8250ef1b88da092ea3365dbaa6e9d2b7d4466640c502a31f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.canvas--DrawRectGradientHRgba","json":"https://demonhunterlabs.com/reference/items/graphics.canvas--DrawRectGradientHRgba.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.canvas--DrawRectGradientHRgba.md"}
