This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

nccb presents ...


Image Rotation

This is an example of how image rotation works, without using built-in rotation functions. The maths is explained in this post:

To see the rotation, run the scenario and left click to set where the top of the image should point. The link above offers some challenge exercises, such as preventing the image being cropped during rotation.

5981 views / 823 in the last 7 days

1 vote | 0 in the last 7 days

Tags: with-source

open in greenfoot
Your browser does not support the canvas tag.


Little question, is this the same way greenfoot's Actor class does it?

Want to leave a comment? You must first log in.

Who likes this?