{"id":"ui--YuiGradientEndChannel","name":"YuiGradientEndChannel","owner":"yeho","package":"ui","kind":"function","signature":"external YuiGradientEndChannel(text content, int index) returns int","description":"Gradient commands carry their end color as four space-separated channel integers in the command content (\"endR endG endB endA\"); the start color stays in the referenced paint. This keeps two-color primitives inside the existing one-paint command shape, so retained stores, damage batching, and stored replay need no second-resource binding.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[{"name":"content","type":"text","description":"Supply content as text."},{"name":"index","type":"int","description":"Supply index as int."}],"returns":"int","members":[],"tags":["cpu","function","source-example","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/render-10-display-list.yh","line":718,"sha256":"f01876e456f5428ef0de2686c230148c1fa3a330f92ef3e3381b9adbdd19ff9e"},"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 YuiGradientEndChannel","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using ui\n\n// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.\ntext content = \"content\"\nint index = 1\nint result = YuiGradientEndChannel(content, index)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuigradientendchannel\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"1d48c30800f40b65f8c360e5af71330492b70a26b1046f0e0bbdd2f8506cf749","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=ui--YuiGradientEndChannel","json":"https://demonhunterlabs.com/reference/items/ui--YuiGradientEndChannel.json","markdown":"https://demonhunterlabs.com/reference/text/ui--YuiGradientEndChannel.md"}
