//Global Variables
int x;
int y;
void setup(){
size(500,500);
background(0,0,0);
textSize(80);
textAlign(CENTER,CENTER);
fill(255);
text("click and drag", 250, 250);
}
void draw(){
if(frameCount == 60){
background(0);
}
int x = mouseX;
int y = mouseY;
stroke(x/2,y/2,700 - x - y);
strokeWeight(4);
if(mousePressed){
line(x,y,pmouseX,pmouseY);
}
}