tags:

views:

87

answers:

1

Is there a way to do an 'angular gradient' in SVG?

(I don't know the official term -- it's the kind of gradient you see in color-pickers, where it varies by angle.)

SVG seems to support only linear and radial gradients, but I'm thinking there might be some way to use a transform to simulate what I want.

thanks!

A: 

There's no standard support to do angular (conical) gradients.

But see http://wiki.inkscape.org/wiki/index.php/Advanced_Gradients#Conical_gradient for some approximation methods (source code not included, though).

KennyTM
Good find. And one neat thing about SVG is that it *is* the source code. Like HTML, if you can see it, there's no way for the source code to *not* be included. :-)
Ken