Rotating and Equilateral triangle

I have an equilateral triangle that I want to rotate around its centre point.

I have zimified a movielip as follows (I'm using Adobe Animate):

triangle=zimify(this.triangle);

The code I am used so far is this. It does rotate, but not arund its center point.

I wonder if I could get some help to do this. I will be illustrating order of symmetry with my students.

triangle
.outline()
.rot(45)
It looks tp me like the registration point is not in the center and so the rotation is not correct.

Thank you

Rod

image
image

The registration is the center of the bounding box. There is an adjust parameter that you can set to move the registration point towards the base - I think you would set this to 1/6 the height for equilateral. Or since we do not know the height as we are making the Triangle, we can set the reg() afterwards like in this example:

Thank you - this really helped. I now have it set up so that a button will incrementally rotate by 30 deg so kids can visualise the concept of order of rotational symmetry.

1 Like