BlazorExtensions / Canvas

HTML5 Canvas API implementation for Microsoft Blazor
MIT License
602 stars 145 forks source link

Path2D Api #91

Open drdream opened 3 years ago

drdream commented 3 years ago

Hello How can I use the Path2D Api?

I would like to use an SVG path like this

` var p1 = new Path2D("M1 0 h 100 v 50 h -100 Z"); ctx.clearRect(0, 0, 300, 300)

ctx.fill(p1)

`