import java.awt.*; public class KaleidoscopeCanvas extends Canvas { public KaleidoscopeCanvas() { super(); } public void drawShape() { // // CHANGE THIS METHOD'S PROTOTYPE // // You should pass a Shape object to this method and keep a reference in this class. // The method call repaint() on the last line of this METHOD actually calls the method paint(..) at the end of this CLASS // // add code here // repaint(); } public void update(Graphics g) { paint(g); } public void paint(Graphics g) { // // Once this method is called, a Graphics object is passed along // You should call the Shape's "draw" method, and pass the Graphics object to the Shape // The shape can then draw itself, which actually means that it draws itself onto this very canvas // // add code here // } }