3 ms·
great to see the examples. I am exploring a small JavaScript module approach to SVG drawing to: https://github.com/mulderp/pinboard-grid https://github.com/muld
by poseid 12y ago
great to see the examples. I am exploring a small JavaScript module approach to SVG drawing to: https://github.com/mulderp/pinboard-grid https://github.com/mulderp/pinboard-grid
- amitp 12y agoI used to draw the lines that way, but I've switched to drawing the squares instead. It tends to look cleaner, the code is simpler, and it also lets me color the squares individually. If I really need to draw the lines, I can set a background color. It's a cheap trick :-)
- poseid 12y agoindeed good advise! I changed the implementation https://github.com/mulderp/pinboard-grid/commit/2a9d2c256ce0ba18cf90d7eae28acb8e43c7bb48 https://github.com/mulderp/pinboard-grid/commit/2a9d2c256ce0... - just saw you use transform instead of adjusting x/y