الأربعاء، 2 مارس 2022

Show HN: I made a WebGL-based app that traces images using circles https://ift.tt/joJLwN7

Show HN: I made a WebGL-based app that traces images using circles I was fascinated by this [0] and this video [1]. After many struggles, I finally built this app that traces images using circles similar to what these videos had shown. The most challenging part (to me) is to find a way to convert images to vector lines. I had tried Potrace, but its output is not suitable for my use case: too many small elements share the same border. Potrace's goal is to represent the original image faithfully using vector lines. But I want to trace the image edges. After searching and trying some Potrace alternatives in vain, I finally found my keyword. Surprisingly (to me), it lies at the end of the wiki page of the very topic [2]. Then I found a paper [3] that has nice pseudocode and a C implementation. I rewrote the pseudocode in Rust because I wanted to experiment with rustwasm. Honestly, I didn't care much about the math behind it. From then, I could continue to finish the app and show it to the world. This app is also my chance to learn about rustwasm and WebGL. FYI: this app is offline-only; your images never leave your browser [0] https://www.youtube.com/watch?v=r6sGWTCMz2k [1] https://www.youtube.com/watch?v=-qgreAUpPwM [2] https://ift.tt/Pro6wkp [3] https://ift.tt/qeYthsw https://ift.tt/ugedaB4 March 2, 2022 at 09:56PM

الثلاثاء، 1 مارس 2022

Show HN: Light Language - General purpose programming language made for peace https://ift.tt/YQrOhjw

Show HN: Light Language - General purpose programming language made for peace https://ift.tt/VYmxcO5 March 2, 2022 at 02:53AM

Show HN: I made a web game called Almost Pong https://ift.tt/WetyTJU

Show HN: I made a web game called Almost Pong Hi HN! I made many small web games in the past with Unity or Phaser. But this time I wanted to make something completely on my own. So I coded a basic game framework in plain JavaScript, and used it to make Almost Pong. This was a really fun project that taught me a lot about JavaScript, and I plan to make more minimalist games with this framework. Interesting fact: Almost Pong doesn't load any assets, all sprites and sounds are generated with code. Happy to answer questions, and please let me know if you have any feedback on the game. Thanks! https://ift.tt/5RF109n March 1, 2022 at 10:09PM

Show HN: Zetteldesk – Zettelkasten for Org-Roam https://ift.tt/uBaZMz6

Show HN: Zetteldesk – Zettelkasten for Org-Roam https://ift.tt/WvuYQJB March 2, 2022 at 12:39AM

Show HN: Anonroom https://ift.tt/NadKoP7

Show HN: Anonroom https://ift.tt/tamd2JP March 1, 2022 at 11:17PM

Show HN: WunderHub – publish and consume APIs like NPM packages https://ift.tt/NnZK0FJ

Show HN: WunderHub – publish and consume APIs like NPM packages https://ift.tt/gfZa1tu March 1, 2022 at 10:57PM

Show HN: Type2Learn – Learn by typing the webpage text in the browser itself https://ift.tt/9o4G5rE

Show HN: Type2Learn – Learn by typing the webpage text in the browser itself Ever happened that while reading a long article, you cannot concentrate and read the same line again and again? Try this extension now! Read the text by typing it on the webpage itself. Practice your touch typing by monitoring your speed, errors you make, and accuracy in real-time. Chrome store link: https://ift.tt/Saprkx9... https://ift.tt/af3lbT4 March 1, 2022 at 10:21PM