Celebrity Painter


NOTE: This applet takes about 15 seconds to load using a 28.8. Changing brushes takes about 5-8 seconds. Be patient, it's worth it!


The available brushes are pictured below. Choose the celebrity's name from the list box to paint with his/her face. There are more brushes than can fit in the list box, so holding the mouse button down while dragging up or down in the list box will scroll through the available brushes.


Applet Name: Celebrity Painter
Applet Source: CelebrityPainter.java
Import(s): java.applet, java.awt, java.awt.image
Feature(s): image, audio, GUI, mouse
Author: Jeff Orkin

Usage Guide:

To run this applet, you need to create an html page that links in the applet, and provides parameter lines for celebrity brushes to include. The html to link in the applet should look like this:

<APPLET CODE=CelebrityPainter.class WIDTH=300 HEIGHT=200>
     <PARAM NAME=brush1 VALUE="Drew Barrymore">
     <PARAM NAME=brush2 VALUE="Jim Carrey">
     <PARAM NAME=brush3 VALUE="Bill Clinton">
</APPLET>

You can add as many celebrities as you want.
To add celebrities:
1. Add a parameter line to the applet tag in the html that has the next sequential brush number, and gives a name string.
2. Provide a 160x200 jpeg of the celebrity, with a filename that matches the name string without spaces.
3. Provide a 40x50 jpeg of the celebrity, with a filename that matches the name string without spaces plus the characters "BR".

For example, to add a David Letterman brush:
1. Add the parameter line
<PARAM NAME=brush4 VALUE="David Letterman">
2. Provide a 160x200 jpeg called DavidLetterman.jpg
3. Provide a 40x50 jpeg called DavidLettermanBR.jpg


Return to index.