Step 1:

Select a silhouette image. One possible source is to use Google images (read the remainder of the specification to determine the desired characteristics of the image). Convert the image to a black and white, if necessary.

The image should be decomposable into at least two elements, each element with its own "visual mass" (see the example below for an illustration).

For the steps below, use the services of the Graphics2D class rather than the Graphics class.

Step 1: Draw a dot in the centre of each visual mass. The dot should track when the window is resized. Draw one dot in red and the other in blue.


Examples


Pasted GraphicPasted Graphic 2
Pasted Graphic 1