W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2010

[whatwg] Canvas: Rendering radial gradients beyond the terminal stops

From: Andreas Kling <andreas.kling@nokia.com>
Date: Tue, 20 Jul 2010 06:31:23 +0200
Message-ID: <4C45269B.3000104@nokia.com>

The current draft of HTML5 [1] says about rendering radial gradients:

"This effectively creates a cone, touched by the two circles defined in 
the creation of the gradient, with the part of the cone before the start 
circle (0.0) using the color of the first offset, the part of the cone 
after the end circle (1.0) using the color of the last offset, and areas 
outside the cone untouched by the gradient (transparent black)."

I find this behavior of "transparent spread" rather strange and it 
doesn't match any of the SVG gradient's spreadMethod [2] options.

The sensible behavior here IMO is "pad spread" (SVG default, and what 
most browsers implementing <canvas> currently do) which means repeating 
the terminal color stops indefinitely.

- Kling

Received on Monday, 19 July 2010 21:31:23 UTC

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