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 andjavafx.scene.shape.Pathobjects (such asjavafx.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 lineiv.image = SwingUtils.toFXImage (painter.renderImage (width, height))(excerpted from theCanvasclass'spaint()function). This line, which is repeatedly invoked in an animation loop, performs several tasks to ensure that the next animation frame is displayed...
Community:
- Printer-friendly version
- 201 reads



