Download code

float col = 0.1;
PVector mouse = new PVector(mouseX,mouseY);

void setup(){
  size(1100,700,P3D);
  background(255);
  smooth(8);
}

void draw(){
  stroke(0,20);
  translate(150,100);
}

void mouseDragged() {
    curve();
    }
void curve(){
  noFill();
  beginShape();
  PVector mouse = new PVector(mouseX,mouseY);
  vertex(130.0, 43.0);
  translate(random(-1,1),random(-1,1));
  bezierVertex(230.83664, 25.0, 89.0, -26.0, 130.0, 43.0);
  bezierVertex(171.0, 122.0, 345.0, 84.0, 275.4657, 173.90295);
  bezierVertex(205.9314, 263.8059, mouse.x+18, mouse.y+32, 286, 334.0);
  endShape();
}