Skip to main content

Jeff Friesen: Painter's Canvas Mobile Edition

Jeff Friesen has publised a new article, Painter's Canvas Mobile Edition:

Last June, I introduced my Painter's Canvas article, which presents a technique for rendering complex graphics (such as fireworks, plasma, fractals, and fire). Instead of relying on nodes and javafx.scene.shape.Path objects (such as javafx.scene.shape.LineTo) to render the graphics, this technique relies on the concepts of canvas and painter for this task. The crux of the article's code is the line iv.image = SwingUtils.toFXImage (painter.renderImage (width, height)) (excerpted from the Canvas class's paint() function). This line, which is repeatedly invoked in an animation loop, performs several tasks to ensure that the next animation frame is displayed...

Community: