linearGradient
linearGradient(
options):FillGradient
Defined in: renderer/src/gradient.ts:79
Create a linear gradient fill usable with GraphicsComponent draws
(g.rect(...).fill(myGradient)).
Uses yage-style numeric colors with optional alpha per stop, and a simple axis shorthand for the common vertical/horizontal cases.
Returns a GradientFill (pixi FillGradient under the hood). Call
.destroy() when you’re done with it to release the backing texture —
components typically do this in onDestroy().
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”FillGradient
Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/renderer.md.