public class Line{ //member int x, y, xEnd, yEnd; color sColor; int alpha; int sWeight; int counter; //constructor Line(int x, int y, int xEnd, int yEnd){ this.x = x; this.y = y; this.xEnd = xEnd; this.yEnd = yEnd; sColor = #006699; alpha = 100; sWeight = 10; } //method void setAlpha(int alpha){ this.alpha = alpha; // bdraw(); } void setWeight(int sWeight){ this.sWeight = sWeight; // bdraw(); } void bdraw(){ stroke(sColor, alpha); strokeWeight(sWeight); line(x, y, xEnd, yEnd); } void disappear(){ x = y = xEnd = yEnd = 1000; bdraw(); } }