This allow gradients to use negative coordinates but enforces an absolute value for the radius as expected by createRadialGradient(...). Note: while it appears to fix my issue, I don't yet know if using pt.abs() may be important for other reasons outside of my use case.
This is an attempt to fix radial gradient behavior for gradients that have a negative center
Pt
, outside the bounds of the canvas.This allow gradients to use negative coordinates but enforces an absolute value for the radius as expected by
createRadialGradient(...)
. Note: while it appears to fix my issue, I don't yet know if using pt.abs() may be important for other reasons outside of my use case.