I'm trying to draw a series of shapes made up of lines, all at different rotations. If I use the context translate/rotate, it rotates the whole canvas. What I'm looking for is the canvas equivalent of SVG's
With SVG, every group can have a different rotation. I can't seem to be able to do this with Canvas.
Also - has anyone managed to get canvas working with IE9? It doesn't seem to recognize getContext.
Code:
<g id="STE1" transform="translate(54 98)">
<text x="-30" y="20">143:44:1</text>
<text x="-30" y="32">NWest</text>
<g id="SRE1" transform="rotate(14)">
<line x1="0" y1="-10" x2="0" y2="10" style="stroke:blue;stroke-width:2" />
<line x1="-7" y1="5" x2="0" y2="-7" style="stroke:blue;stroke-width:2" />
<line x1="0" y1="-7" x2="7" y2="5" style="stroke:blue;stroke-width:2" />
<line x1="7" y1="5" x2="0" y2="-3" style="stroke:blue;stroke-width:2" />
<line x1="0" y1="-3" x2="-7" y2="5" style="stroke:blue;stroke-width:2" />
<line x1="-3" y1="10" x2="0" y2="7" style="stroke:blue;stroke-width:2" />
<line x1="0" y1="7" x2="3" y2="10" style="stroke:blue;stroke-width:2" />
</g>
</g>
Also - has anyone managed to get canvas working with IE9? It doesn't seem to recognize getContext.