: 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
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!
More posts by @Karen819
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.