p5.js-editor
p5.js-editor copied to clipboard
editor crashes when rotating on Y or Z axis
Here's the basic code I ran to crash the editor:
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL);
}
function draw() {
background(0);
translate(width * .5, height * .5,0);
rotateY(frameCount * .1);
box(100);
}
rotateX seems more stable for some reason. Also, the crashes are consistent when launching the editor the typical way, but not always when launching the editor from command line (I tried to figure out if there's any helpful console output I can provide, but didn't find anything useful so far :/)
I just tested this in P5 Editor 0.5.7 on Mac OSX 10.11.1 Triec rotateX,rotateY and rotateZ all work fine.