Ex_01_03_PVector_sub

vectorA.sub(vectorB)

void setup(){
  size(600,600);
}

void draw(){
  background(255);
  
  PVector mouse = new PVector(mouseX,mouseY);
  PVector center = new PVector(width/2,height/2);
  
  mouse.sub(center);
  
  translate(width/2,height/2);
  
  line(0,0,mouse.x,mouse.y);
}