blob: 41356bc7ef52425c8986e31f156041669e0017ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<svg viewBox="0 0 60 30" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(20,10)">
<rect x="0" y="0" width="10" height="10" />
<!-- rotation is done around the point 0,0 -->
<rect x="0" y="0" width="10" height="10" fill="red" transform="rotate(100)" />
<!-- rotation is done around the point 10,10 -->
<rect
x="0"
y="0"
width="10"
height="10"
fill="green"
transform="rotate(100, 10, 10)" />
</g>
</svg>
|