I have an interactive application mockup made with PaperJS but it still lacks a small feature. I need to draw a 2D grid (you know… that uniform mesh of lines that repeat endlessly over a surface), it will be used as guides for user interactions when dragging things over the screen (but the grid itself can be completely static).
I just don’t know how to implement it in PaperJS. It can’t be just a background image since it will be presented in different scales, also I wanted it to be rendered very fast since it will always be visible.
The type of grid I would like to draw is a 2D mesh centered grid, like in the example (a) of this picture:

Any enlightenment is welcome.
If all you want is lines:
If you want each rectangle to be a separate Path to hitTest for the individual rectangles: