There's a "bug" in this code, can you find it? (I have not found the cause yet.)
I think a block based language based on a #functional #DomainSpecificLanguage such as https://diagrams.github.io/ could reflect the structure of the image more directly and thus make such bugs easier to spot. But please don't take this criticism seriously until I've built such a block based language.
I found this through the great book: "500 Lines or Less" in the chapter on Blockcode:
https://aosabook.org/en/500L/blockcode-a-visual-programming-toolkit.html