/* Variablendeklaration */ var M = 100; // fixer MaƟstab 100px -> 1m var Dr = 0.5; // realer Durchmesser Dr = 50 cm -> 0.5 m var t = 0; // Zeitvariable var dt; // Increment der Zeitv. var frmRate; // Screen-Refreshrate ... function setup() { ... } function draw() { ... var Dm = Dr*M; // Modelldurchmesser Dm = 50 pixel ... }