News for hackers. Stuff that matters.
Re:Line drawing on a grid by amitp on Wednesday December 31, 2014 @01:36PM (#8820477)
I 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 :-)
Re:Line drawing on a grid by poseid on Thursday January 01, 2015 @10:58AM (#8823235)
indeed good advise! I changed the implementation https://github.com/mulderp/pinboard-grid/commit/2a9d2c256ce0... - just saw you use transform instead of adjusting x/y