W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2012

[whatwg] Addition of a setExtend(in DOMString extend) method to the CanvasGradient interface

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 24 Feb 2012 23:13:58 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1202242312010.17182@ps20323.dreamhostps.com>
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. 
> http://www.w3.org/TR/SVG11/pservers.html#LinearGradientElementSpreadMethodAttribute

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.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 24 February 2012 15:13:58 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:40 UTC