sclass JMaxSpeedAnimation is Swingable { settable IF0 renderFrame; gettable new ImageSurface imageSurface; gettable new DoubleFPSCounter fps; *() {} *(IF0 *renderFrame) {} cachedVisualize { imageSurface.pixelate(true); imageSurface.autoZoomToDisplay(true); awtCalcContinuously(imageSurface, -> { var img = renderFrame!; fps.inc(); if (img != null) imageSurface.setImage(img); }); ret jscroll_center_borderless(imageSurface); } }