3 ms·
Nice writeup and quite elegant code! Curiously, the line drawing functions in Ejecta[1] (which reproduces the Canvas2D API) is one of the most complicated part
by phoboslab 12y ago
Nice writeup and quite elegant code!
Curiously, the line drawing functions in Ejecta[1] (which reproduces the Canvas2D API) is one of the most complicated parts of the whole project and certainly has the ugliest code of it[2]. It's fast and works reliably, but maintaining it is a nightmare.
[1] http://impactjs.com/ejecta http://impactjs.com/ejecta
[2] https://github.com/phoboslab/Ejecta/blob/master/Source/Ejecta/EJCanvas/2D/EJPath.mm#L520 https://github.com/phoboslab/Ejecta/blob/master/Source/Eject...