Both groups use transform="translate(200,200)" to sit at SVG centre. JS rotates gOuter by adding rotate(angle) BEFORE the translate. gInner never gets a rotate — it is always just translate(200,200). Because the gear path coordinates are centred at 0,0, rotate(angle) translate(200,200) rotates perfectly around 200,200. Outer teeth — JS will set transform="rotate(a) translate(200,200)" Inner circuit — never rotated, always translate(200,200) only
Wordmark
THE MT WORKSHOP
Status box
// STATUS
Something good is being built.
We're putting the final touches on our website.
Contact details
PHONE 03 5002 1485
LOCATION Mildura, VIC
ABN 36 854 835 253