!7 module WebCamPixelated > DynImageSurface { int width = 16; start { doEvery(1000, rstUpdate()); } void update { final BufferedImage img = dm_webCamImage(); temp tempAfterwards(r { lastImage := img }); if (img == null || img == lastImage) ret; setZoom(doubleRatio(img.getWidth(), width)); setImage(resizeImage(img, width)); } }