- From: Brian Manthos <brianman@microsoft.com>
- Date: Mon, 31 Oct 2011 06:27:39 +0000
- To: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
http://msdn.microsoft.com/en-us/library/dd368149(VS.85).aspx
In D2D, this is addressed with the gradientOriginOffset parameter:
"In the brush's coordinate space, the offset of the gradient origin relative to the gradient ellipse's center."
To support it, it would be straighforward to expand the syntax from (one proposal):
radial-gradient(<size> [at <position>]?, <color-stop>[, <color-stop>]+)
to (another proposal):
radial-gradient(<size> [at <position> [offset <length>{2}]? ]?, <color-stop>[, <color-stop>]+)
-Brian
> -----Original Message-----
> From: fantasai [mailto:fantasai.lists@inkedblade.net]
> Sent: Sunday, October 30, 2011 11:14 PM
> To: www-style@w3.org
> Subject: [css3-images] asymmetric radial gradients
> 
> I was looking through Brad's comments on the radial gradient syntax,
> and one of the
> things that stood out was the broken expectation that moving the center
> would shift
> the center of the gradient while keeping the outer rim the same -- an
> effect that
> would create an asymmetric radial gradient, like this:
>    http://www.amanith.org/images/Radgrad.png
> 
> I'm not saying we should add this capability right now, but I'm a
> little concerned
> that we might be locking ourselves in here. If we were to add
> asymmetric radial
> gradients in the future, how would that look? How would it interact
> with the
> symmetric radial gradient syntax we have now?
> 
> ~fantasai
> 
Received on Monday, 31 October 2011 06:30:23 UTC