Extraer imagen en p5.js

function setup() {
let c = createCanvas(100, 100);
background(255, 0, 0);
saveCanvas(c, 'myCanvas', 'jpg');
}
java programmer