减少折线描边宽度 [英] Decreasing Polyline Stroke Width

查看:100
本文介绍了减少折线描边宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试模仿白板上标记的行为,并且想知道是否可以使用svg折线来做到这一点.我知道可以设置笔触宽度,但是可以根据我可以算出的鼠标速度改变它的宽度以使其变化吗?或者它只是笔触的常数?

I am trying to mimic the behavior of markers on white boards and was wondering if it I can do it with svg polylines. I know the stroke width can be set but can be it changed to vary depending on the velocity of the mouse which I can figure out or is it just a constant value for the stroke?

推荐答案

在一个折线元素中不能有多个笔触宽度.我认为画布可能更适合此任务.

You can't have multiple stroke widths in a single polyline element. I think canvas is probably a better fit for this task.

这篇关于减少折线描边宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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