We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Not sure if you want bug reports here, or if this even is a bug. In the reference for the translate function, it states that translations are cumulative, but that they are reset after each draw(). This is certainly the behavior that I was seeing up until I updated my lib this afternoon to v0.4.20. This simple sketch, indicates that the translations are cumulative even between draw()'s (i.e. the translation is not reset after each draw()).
var i;
function setup() {
// put setup code here
createCanvas(600,600);
ellipseMode(RADIUS);
i=0;
}
function draw() {
translate(i,i);
ellipse(0,0,20,20);
i+=1;
}
Answers
If you got unexpected divergent behaviors among versions you've got yourself a bug:
https://GitHub.com/processing/p5.js/issues
Thanks for the link. I have posted the issue there.
https://GitHub.com/processing/p5.js/issues/1183