Resizable Grid Using Canvas

Inspired by Jasper Potts post showing how to create a resizable “DotGrid” in JavaFX using the Canvas API I went ahead and modified a bit, because I needed a similar approach for a contribution.

So I changed the visuals to actually draw a grid (horizontal and vertical lines) instead of dots and added styleable CSS properties to customize grid size and color via CSS.

You can view the final Code at Github. If you are concerned about its performance, you may even increase its speed by only redrawing the part of the canvas that has changed..