I didn't know how to "archive" my prototype, so here is the code:
PImage mousecursor;
void setup(){
size(400, 980);
background(255, 255, 255); //r, g, b
frameRate(60);
imageMode(CENTER);
mousecursor = loadImage("stamp.png");
}
void draw(){
if(mousePressed){
make_stroke();
}
}
void mousePressed(){
}
void mouseReleased(){
}
void make_stroke(){
PVector mousePos = new PVector(mouseX, mouseY);
PVector pmousePos = new PVector(pmouseX, pmouseY);
float distance = mousePos.dist(pmousePos);
PImage image_to_use = mousecursor;
if(distance >5)
image(image_to_use, mouseX, mouseY);
}