{"id":"runtime--Canvas.DrawRectGradientVRgba","name":"Canvas.DrawRectGradientVRgba","owner":"yeho","package":"runtime.Canvas","kind":"builtin","signature":"Canvas.DrawRectGradientVRgba(int x, int y, int width, int height, int startRed, int startGreen, int startBlue, int startAlpha, int endRed, int endGreen, int endBlue, int endAlpha) -> void","description":"Draw rect gradient vrgba through the Canvas runtime.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"x","type":"int","description":"Supply x as int.","rule":"AnyInteger"},{"name":"y","type":"int","description":"Supply y as int.","rule":"AnyInteger"},{"name":"width","type":"int","description":"Supply width as int.","rule":"AnyInteger"},{"name":"height","type":"int","description":"Supply height as int.","rule":"AnyInteger"},{"name":"startRed","type":"int","description":"Supply start red as int.","rule":"AnyInteger"},{"name":"startGreen","type":"int","description":"Supply start green as int.","rule":"AnyInteger"},{"name":"startBlue","type":"int","description":"Supply start blue as int.","rule":"AnyInteger"},{"name":"startAlpha","type":"int","description":"Supply start alpha as int.","rule":"AnyInteger"},{"name":"endRed","type":"int","description":"Supply end red as int.","rule":"AnyInteger"},{"name":"endGreen","type":"int","description":"Supply end green as int.","rule":"AnyInteger"},{"name":"endBlue","type":"int","description":"Supply end blue as int.","rule":"AnyInteger"},{"name":"endAlpha","type":"int","description":"Supply end alpha as int.","rule":"AnyInteger"}],"returns":"void","members":[],"tags":["builtin","canvas","cpu","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1547,"sha256":"14d29529d2d3c0e2b587f83c7f125b99ada142ed7ae28612701ea6cb9174ac65"},"status":"registered-intrinsic","notes":["The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources."],"examples":[{"id":"usage","title":"Call Canvas.DrawRectGradientVRgba","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"int 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\nCanvas.DrawRectGradientVRgba(x, y, width, height, startRed, startGreen, startBlue, startAlpha, endRed, endGreen, endBlue, endAlpha)\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__canvas_drawrectgradientvrgba\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"97f3f5280f375a85ed14a86a61698a5ebe3b289b8dfa0c08892626acc551e36b","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--Canvas.DrawRectGradientVRgba","json":"https://demonhunterlabs.com/reference/items/runtime--Canvas.DrawRectGradientVRgba.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--Canvas.DrawRectGradientVRgba.md"}
