/* Name: Chris Johnson johnson@dcs.gla.ac.uk Last modified: 27/10/98 Description: Implements a canvas that is initially coloured black - as the user selects a point on the scroll canvas, this area will be repainted to the colour of the pixel that is under the users selection. Part of an applet to illustrate the use of scroll bars to mix proportyions of RGB colors. Based on a program in G.W. Rouse's An Introduction to Data Structures and Algorithms with Java, Prentice Hall, Hemel Hemstead, 1998. pp 120-126. */ import java.applet.Applet; import java.awt.*; class ColorCanvas extends Canvas { ColorCanvas() { super(); setBackground(Color.black); } }