set_rotation
Description:
Sets the rotation property to rotation.
The rotation is absolute, rather than cumulative, through successive calls to set_rotation, so calling it with 90° then 20° will result in a final rotation of 20°.
Parameters:
| this | |
| rotation |
the new rotation for the image, in degrees |