bodoni / svg

Composer and parser for SVG
Other
299 stars 45 forks source link

How to get large-arc-flag and sweep-flag from Parameters? #57

Closed msparkles closed 2 years ago

msparkles commented 2 years ago

How to get large-arc-flag and sweep-flag from Parameters? Does one simply cast from f32 to bool? Would a helper method be possible, then? Or even a full page of methods for simple access with Parameters. The library is nice, but this part seems particularly obscure.

IvanUkhov commented 2 years ago

Hi, Parameters is a vector of numbers. One could indeed take the one corresponding to the flag in question and cast.