SVG 角度渐变 [英] SVG angular gradient

查看:32
本文介绍了SVG 角度渐变的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在 SVG 中实现角度渐变"?

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 似乎只支持线性和径向渐变,但我认为可能有某种方法可以使用变换来模拟我想要的.

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.

谢谢!

推荐答案

没有标准支持进行角度(锥形)渐变.

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

但请参阅http://wiki.inkscape.org/wiki/index.php/Advanced_Gradients#Conical_gradient 用于一些近似方法(但不包括源代码).该链接上的示例不起作用.

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

这篇关于SVG 角度渐变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆