Rotate rectangle around its own center in SVG

前端 未结 5 1556
孤独总比滥情好
孤独总比滥情好 2020-12-05 08:59

I have following piece of code :






        
5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 09:48

    origin
    x = x + width / 2
    y = y + height / 2
    here
    x is 10
    y is 10
    width is 120
    height is 120

    
    

提交回复
热议问题