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

Report as inappropriate.

danpost
danpost presents ...

2015/2/27

Clock w/BgInk Support Class

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:
ink.apply();

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.

2610 views / 837 in the last 7 days

Tags: simulation demo clock paint time danpost support ink

This scenario is a member of: Demos by danpost, Support Classes by danpost


There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

A new version of this scenario was uploaded on 2015-02-27 20:32:22 UTC
danpostdanpost

2015/2/27

BgInk class code simplified and totally documented with an example of its use.

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

Who likes this?

No votes yet.