|
|
|
|
|
by javajosh
1074 days ago
|
|
I like it! But instead of modifying your data to suit SVG's default coordinate system, I suggest using a top-level "g" tag with a "transform/scale" attribute. Like this: <svg class="natural-units"
width="200px" height="200px"
viewBox="-1 -1 2 2"
>
<desc>A static svg unit circle</desc>
<g transform="scale(1,-1)">
<circle class='unit-circle' r="1" fill="none" stroke-width=".001 "/>
</g>
</svg>Example adapted from: https://simpatico.io/svg.md#naturalunits In this way you can use the intuition about the coordinate system that you built in school. |
|