Drawings in JavaScript / TypeScript. Suggestions are welcome.
The finished drawings are displayed on the GitHub.io page.
Drawings are created via their constructor. You can then set their size (or only width or height) and call init() to draw them.
const dc = new DragonCurve();
dc.setSize(500, 500);
dc.init();
Or via function chaining:
const dc = new DragonCurve().setSize(500, 500).init();
See drawing.ts for all possible arguments.