the gradient type
gradient coordinates [x0, y0, x1, y1] for linear, [x0, y0, r0, x1, y1, r1] for radial
Release pooled resources held by this gradient.
Get or create a native CanvasGradient for use with a 2D context.
This is the one to reach for when baking a gradient into your own
canvas — it hands back a value for ctx.fillStyle and touches no
shared state, so two callers cannot clobber each other.
The result is cached and reused until a stop changes.
the 2D context to create the gradient on
a native gradient bound to that context
A Gradient object representing a linear or radial gradient fill. Created via Renderer#createLinearGradient or Renderer#createRadialGradient. Can be passed to Renderer#setColor as a fill style.