How to restore the transformations after a resize
问题 I am working with Processing.js (version 1.4.8). I have 5 white points, which coordinates I chose specifically. The black dot marks the center of the sketch! I want to be able to translate and scale my sketch. ALSO, I want it to occupy the whole window. var mapWidth, mapHeight, canvas, pjs, centerX, centerY; var points = [[100, 100], [300, 100], [100, 300], [300, 300], [200, 200]]; var setSize = function() { mapWidth = $(window).outerWidth(); mapHeight = $(window).outerHeight(); if (pjs) {