Frage

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?

War es hilfreich?

Lösung 2

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

Andere Tipps

Or if you wanted to use SVG, instead of using a <polyline>, use a series of connected <line>s

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top