processing / p5.js-editor

Deprecated desktop editor for p5.js
https://p5js.org
MIT License
338 stars 91 forks source link

save() does not work in the editor #155

Closed bmoren closed 8 years ago

bmoren commented 8 years ago

It does work if you open in browser

var num = 0;
function setup() {
  createCanvas(windowWidth,windowHeight);
}

function draw() {
    background(255);
    ellipse(width/2,height/2,500,500);
}
function mousePressed(){
    num++
    // you must run in browser to save frames, 
    save("export" + num + ".jpg")   
}
antiboredom commented 8 years ago

as far as I can tell this is an issue with nodewebkit. We might have to overwrite p5s save function to fix it.

antiboredom commented 8 years ago

this is fixed now and will be available in the next release.