Report as inappropriate.
This clock simulation contains a support Actor subclass for decorating the background image of the world.
Steps in using a BgInk object:
(1) create a BgInk actor object, using:
BgInk ink = new BgInk();
(2) give it any image;
(3) add it to the world;
(4) rotate it and move it around as needed;
(5) set its final rotation;
(6) apply the ink to the background image of the world using:
The final step applies the image to the background of the world accounting for the rotation of the actor and removes the BgInk object from the world.
The class is documented and gives an example of its use.
Want to leave a comment? You must first log in.
No votes yet.