用渐变笔触SVG折线 [英] Stroking an SVG polyline with a gradient

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

问题描述

是否可以使用水平线性渐变画出SVG折线,而该渐变的角度在每个折线顶点处都发生变化?它看起来像这样:

Is it possible to stroke an SVG polyline with an horizontal linear gradient where the gradient's angle changes at every polyline vertex? it would look something like this:

推荐答案

看看 tubefy 由以色列Eisenberg撰写.svg中目前没有任何东西可以为您提供确切的声明性要求.但是,tubefy利用svg进行渲染,并且可以生成高级渐变,例如您要寻找的渐变.

Have a look at tubefy by Israel Eisenberg. There's not currently anything in svg that will give you exactly what you're asking for declaratively. However, tubefy makes use of svg for rendering, and can produce advanced gradients such as the one you're looking for.

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

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