4 ms·
Show HN: Dupdupdraw, a Forth-inspired drawing bot
- erichocean 11y agoAnd here's something similar for 3D: https://en.wikipedia.org/wiki/Generative_Modelling_Language https://en.wikipedia.org/wiki/Generative_Modelling_Language
- lfender6445 11y agohttps://github.com/polm/dupdupdraw https://github.com/polm/dupdupdraw
- Lerc 11y agoI'll pop my head up to say I did something similar with https://github.com/Lerc/stackie https://github.com/Lerc/stackie blogpost guide at http://blag.fingswotidun.com/2015/09/stack-machine-generated-textures.html http://blag.fingswotidun.com/2015/09/stack-machine-generated... I like the idea of a twitter feed to give examples. It satisfies the "Show me it working." urge nicely. I wonder if the idea would work interactively. Say "@dupdupdraw render: 16 128 0 // x sin - - sinh y 0 xg 16 sinh sin + swap swap % y di sr dup 16 32 512 16 di 512 @ + ish " and get it to reply with the image.
- polm23 11y agoIt actually already works that way! Feel free to tweet at it.
- polm23 11y agoHowdy folks, author here - sorry for not making it clearer, but if you tweet at @dupdupdraw it'll interpret your tweet as a program and reply with a picture. Words not in the vocabulary are interpreted as random numbers, so worst case you get a flat color. For a more detailed guide, check github or some examples: https://github.com/polm/dupdupdraw https://github.com/polm/dupdupdraw http://www.dampfkraft.com/by-id/efa8fe5c-34b0-47fc-99dd-999235eb0ea4.html http://www.dampfkraft.com/by-id/efa8fe5c-34b0-47fc-99dd-9992... If you have any ideas, pull requests and forks are welcome too!