Better HN
topnewbestaskshowjobs
Log inSign up

narco_snow

42 karma · joined Oct 7, 2019 (7y ago) · 14 submissions

Submissions

comment 5y ago · link · parent

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

2.

Serpentor, Emperer of Cobra(github.com ↗)

2 points · by narco_snow · 5y ago · 1 comment

comment 6y ago · link · parent

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 :)

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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

comment 6y ago · link · parent

Cooooool

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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.

10.

Lavalamp.app(lavalamp.app ↗)

95 points · by narco_snow · 6y ago · 32 comments

comment 7y ago · link · parent

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

Thanks for the input and advice :)

comment 7y ago · link · parent

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!

13.

Show HN: Fntags – JavaScript Instead of HTML(narcolepticsnowman.github.io ↗)

4 points · by narco_snow · 7y ago · 4 comments