W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2011

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

From: Jonathan Watt <jwatt@jwatt.org>
Date: Tue, 19 Apr 2011 16:41:25 +0100
Message-ID: <4DADAD25.7060400@jwatt.org>
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[1], 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[2].

Jonathan

[1]
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#canvasgradient
[2]
http://www.w3.org/TR/SVG11/pservers.html#LinearGradientElementSpreadMethodAttribute
Received on Tuesday, 19 April 2011 08:41:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:03 GMT