Mobile app version of vmapp.org
Login or Join
Karen819

: Create SVG circle with 6 segments What would be the most efficient/concise way to create a SVG file with 6 segments? I'd like to create the SVG by hand and not pre-calculate the points with

@Karen819

Posted in: #Svg

What would be the most efficient/concise way to create a SVG file with 6 segments?

I'd like to create the SVG by hand and not pre-calculate the points with some kind of software - if possible.

I think using a path like this would be a start

<path d="M 200,200 l 150,0 a150,150 0 0,0 -37,-97 z"
fill="red" stroke="black" stroke-width="2" stroke-linejoin="round" />


But can we calculate the points within the SVG somehow?

Any ideas much appreciated!

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Karen819

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gloria351

I do not understand what are you trying to create, but if geometric patterns with numerous repeated details, then one can apply affine transformations to pieces of the graphics already drawn and reuse its code. Here's a geometric example from Wikimedia Commons:



It is not exactly “calculate all the points within the SVG”, but passing to the SVG engine such tedious tasks as expanding a rotational or reflectional symmetry.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme