Programmatically rotate shapes using coordinates

后端 未结 3 1170
时光说笑
时光说笑 2021-01-23 07:47

If I have some shapes defined using arrays of coordinates e.g.

[[-30, -30], [-30, 30], [30, 30], [30, -30]]

and edges defined using:

         


        
3条回答
  •  后悔当初
    2021-01-23 08:23

    use css transition and change transform by javascript

    https://www.w3schools.com/cssref/css3_pr_transform.asp

    https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions/Using_CSS_transitions

提交回复
热议问题