BlazorExtensions / Canvas

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

Support ellipse #92

Open namse opened 3 years ago

namse commented 3 years ago

I think this library doesn't include drawing ellipse(CanvasRenderingContext2D.ellipse()).

Would you please add ellipse function?

drdream commented 3 years ago

Im struggling with this too.. Looks like you have to use some Einstein math to convert an ellipse into an arc.

stefanloerwald commented 3 years ago

Drawing ellipses is supported in https://github.com/excubo-ag/Blazor.Canvas/

seddik commented 2 years ago

I have this portion of code it is drawing ellipse with two radius horizontal/vertical, sorry I had it on photo only I couldn't retype it. you can remove the color / pen handeling if you want

image