|
|
|
|
|
by wolfgangK
3372 days ago
|
|
Always nice to see some clojure code, even more so when to code is interactive.
However, I would not have coded it that way. Call it premature abstraction if you will, but I think, especially in a language guiding you toward purity and immutability like Clojure, that one should avoid "doing" things until the last moment. So instead of drawing triangle, I'd compute them, and only draw the computed triangles as as sequence of polylines. The added benefit it that you can them compose any other transformation on the resulting triangles. I have not found the time yet to actually write the blog post, but my take would be more like : https://scientific-coder.github.io/Playground/2017-03-20-fra... |
|