SVG角度梯度 [英] SVG angular gradient

查看:99
本文介绍了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天全站免登陆