[whatwg] Addition of a setExtend(in DOMString extend) method to the CanvasGradient interface
ian at hixie.ch
Fri Feb 24 15:13:58 PST 2012
On Tue, 19 Apr 2011, Jonathan Watt wrote:
> The extend mode of canvas gradients isn't under user control as it is in
> SVG. I'd like to propose adding a setExtend(in DOMString extend) method
> to the CanvasGradient interface, where the method would accept the
> arguments "none", "repeat", "reflect" and "pad". These would be defined
> similarly to the values that the 'spreadMethod' attribute on SVG
> gradients accepts.
Can't you just explicitly define the gradient across the entire range of
coordinates that you plan to use it on? (i.e. is this just a convenience
feature for something that's already possible?)
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg