/* Normierungsmodalität */ var imageCenter = "center"; // Mittelpunkt "center"oder Schwerpunkt "gravity" ... var myImage; // zu digitalisierendes Image ... function setup() { ... /* image laden */ myImage = loadImage("data/image.png"); // Objekt liegt im Urzustand if (myImage.width >= myImage.height) mainAxis = 'x'; else mainAxis = 'y'; } function draw() { background(backgroundColor); ... //****************************************** Darstellung ************************************************ push(); // Neues Koordinatensystem imageMode(CORNER); translate(0.5*width, 0.5*height); imageMode(CENTER); image(myImage, 0, 0); // Darstellung Image myImage.resize(0.5*width, 0); // Image wird stets auf 50% Fensterbreite gebracht pop(); ... }