szimek
szimek

Reputation: 6484

Is it possible to draw a Bézier curve with variable width in SVG?

I wrote a small library to draw signatures in HTML apps which uses Bézier curves with variable width (based on drawing speed) to simulate hand writing effect: http://szimek.github.io/signature_pad.

Is it possible to draw such curve, i.e. Bézier curve with different width at its beginning and its end in SVG?

Upvotes: 1

Views: 796

Answers (2)

Erik Dahlström
Erik Dahlström

Reputation: 60976

It's possible to export such curves to svg, but you'd have to represent the shapes as filled paths. SVG doesn't support variable width stroking (yet).

Upvotes: 1

Paul LeBeau
Paul LeBeau

Reputation: 101830

NO. SVG does not currently support variable width stroke.

Upvotes: 1

Related Questions