Hacker Newsnew | past | comments | ask | show | jobs | submit | narco_snow's commentslogin

A builder for cobra commands that reduces boiler plate a tad.


Yeah I had thought of making them stick together...

I'm going to upgrade it to use this algorithm in the future https://peeke.nl/simulating-blobs-of-fluid

Should be super neato then :)


I mean... Kinda. Lol. Just enjoy the pretty colors and stop being a curmudgeon.


You can use the share button to get a link to other colors. Personally, that gnarly green is my favorite color. Glad I got the chance to torture you.


Right now it's just using the metaball trick (high contrast and blur filters), so fuzziness is as close as that will get. A future version will have more realistic lava that correctly "blobs". I'll make sure and add sliders for those :)

Algorithm if you're interested. https://peeke.nl/simulating-blobs-of-fluid


Cooooool


Yep, metaballs. I'm planning on upgrading to the "double density relaxation" algorithm to make it more lava-y. I've never done that before, and the algorithm is pretty complex...

Here's a good example if you're interested. https://peeke.nl/simulating-blobs-of-fluid


Yep, it uses the same trick as metaballs to cause the blobbing and sets the contrast really high. This makes the colors pretty weird... I started with a color picker but it was a pretty poor experience.


You nailed exactly what I was going for. Less fluff, just the nuts and bolts.

Thanks for the input and advice :)


I've created this web ui framework where you write templates in javascript instead of html or any other templating language. It's written in es6, so it can be used directly in the browser.

The library is under 3kb when minified and gzipped, and around 9kb when minified alone.

The api was largely inspired by functional components and state hooks in react.

The dom is built directly by the tag functions, the tag functions are effectively equivalent to html tags. There's no virtual dom or other representations, and the dom is updated directly on state changes.

fntags provides the ability to bind any element to any state you have a handle to.

If you're looking for something light weight for your next project, try it out!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: