This package is written in *[http://golang.org Go]* and provides an API for drawing linear and radial gradients. As of yet, the API is not guaranteed to be final and may be changed in non-backward compatible ways.
DrawLinear draws a linear gradient to dst. If the gradient vector (as
defined by x0, y0, x1, and y1) is found to be purely horizontal or purely
vertical, the appropriate optimized functions will be called.