Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rotate #22

Open
colinmeinke opened this issue May 3, 2017 · 2 comments
Open

Add rotate #22

colinmeinke opened this issue May 3, 2017 · 2 comments
Assignees

Comments

@colinmeinke
Copy link
Owner

Similar to motion path?

@colinmeinke colinmeinke self-assigned this May 3, 2017
@colinmeinke
Copy link
Owner Author

colinmeinke commented Jun 27, 2017

import { shape, rotate } from 'wilderness'

const square = {
  type: 'rect',
  width: 20,
  height: 20,
  cx: 50,
  cy: 50
}

const squareWithRotate = shape(square, {
  ...square,
  forces: [ rotate(360) ]
})

@dalisoft
Copy link

This also can be done. Just for second case rotate 360 from points rotate and it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants