Thank you @neilcsmith, good find. It’s not documented.
It would work like this:
// 1. original
image(canvas, 0, 0);
// 2. horizontal flip
image(canvas, 0, 0, canvas.width, canvas.height,
canvas.width, 0, 0, canvas.height);
Thank you @neilcsmith, good find. It’s not documented.
It would work like this:
// 1. original
image(canvas, 0, 0);
// 2. horizontal flip
image(canvas, 0, 0, canvas.width, canvas.height,
canvas.width, 0, 0, canvas.height);