this.canvas = canvas;
// From the Die class, with the lines to implement the roll // removed, but with the two statements that draw a RED LINE // and prepare for the position of the next RED LINE shown. // Note how this would NOT work, except for the PIV canvas! // ------ public void roll() { // ------ new Line(150, lineY, 250, lineY, canvas).setColor( Color.red ); // ------ lineY++; }