File:Transform example.svg
| Description |
Simple example for <svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="-8 -8 16 16" fill="none">
<path stroke="black" stroke-width="1" d="m-7,0h14M0-7v14"/>
<circle stroke="red" stroke-width="1" r="7"/>
<path stroke="blue" stroke-width="16" d="m0,0h256v256H0z" transform="translate(-8 -8)scale(.0625)"/>
</svg>
The transformation can as well be coded by the matrix
transform="matrix(.0625 0 0 .0625 -8 -8)"
The real size (w1 × h1) is 256 × 256, the viewBox sets it to (w2 × h2) 16 × 16 with a translation tx = -8 and ty = -8. By the |
| Date | |
| Source | Own work |
| Author | Sarang |
| SVG development | Category:Valid SVG created with Text Editor:GeometricsCategory:SVG simplified geometrics●Zero#♦ |
| This image of simple geometry is ineligible for copyright and therefore in the public domain, because it consists entirely of information that is common property and contains no original authorship. |
