News for hackers. Stuff that matters.
Re:Lavalamp.app by j3th9n on Tuesday November 17, 2020 @06:01PM (#25131088)
Finally a true random number generator available as a web app.
Re:Lavalamp.app by moehm on Tuesday November 17, 2020 @07:25PM (#25131686)
Re:Lavalamp.app by liminal on Tuesday November 17, 2020 @06:22PM (#25131243)
This seems more like metaballs than a lava lamp simulation. The balls interact before they touch.
Re:Lavalamp.app by GuB-42 on Tuesday November 17, 2020 @07:27PM (#25131702)
Actually, these are blurred circles. Apparent when you set the "fuzziness" slider to zero.

Metaballs are different. They are essentially a visualization of electric or gravitational fields. For the traditional formula in 2D, each pixel is colored based on the weighed sum of the inverses of the distances to the center of each "ball".

Re:Lavalamp.app by narco_snow on Thursday November 19, 2020 @11:12PM (#25157240)
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

Re:Lavalamp.app by some1else on Wednesday November 18, 2020 @05:16AM (#25135110)
This heats up the computer as well, just like the real thing!
Re:Lavalamp.app by eznzt on Tuesday November 17, 2020 @06:25PM (#25131264)
Seems interesting, but the colour palette is just awful.
Re:Lavalamp.app by narco_snow on Thursday November 19, 2020 @11:11PM (#25157235)
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.
Re:Lavalamp.app by lgas on Tuesday November 17, 2020 @11:52PM (#25133339)
You can change the colors in the settings.
Re:Lavalamp.app by freeCandy on Wednesday November 18, 2020 @04:45AM (#25134923)
RGB sliders would have been better here. I find it quite difficult to use HSV without a visual color wheel.
Re:Lavalamp.app by Ennea on Wednesday November 18, 2020 @04:15AM (#25134703)
The color picker is equally awful.
Re:Lavalamp.app by carl8 on Wednesday November 18, 2020 @12:21AM (#25133474)
I made something similar, called PlasmaJS which you can view here: http://plasmajs.com
Re:Lavalamp.app by narco_snow on Thursday November 19, 2020 @11:13PM (#25157246)
Cooooool
Re:Lavalamp.app by deostroll on Tuesday November 17, 2020 @09:43PM (#25132609)
Re:Lavalamp.app by stinos on Wednesday November 18, 2020 @02:15AM (#25134018)
At first sight the thing which differs most from an actual lamp is that if two blobs collide they merge and then 'unmerge' only to continue with same shape and in in the same direction as before the collision. Takes away some of the magic, still: nice.
Re:Lavalamp.app by narco_snow on Thursday November 19, 2020 @11:21PM (#25157286)
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 :)

Re:Lavalamp.app by lostgame on Tuesday November 17, 2020 @07:16PM (#25131636)
A lot of people hating on this in the comments, but other than; yes, those absolutely God-awful default colours I’d say it’s pretty neat.
Re:Lavalamp.app by HeckFeck on Wednesday November 18, 2020 @06:09AM (#25135434)
> God-awful default colours

The 1970s throwback wouldn't be complete without it.

Re:Lavalamp.app by w4rh4wk5 on Tuesday November 17, 2020 @06:51PM (#25131461)
Does anyone else have issues with the sliders?
Re:Lavalamp.app by dylan604 on Tuesday November 17, 2020 @08:18PM (#25132083)
They seem very sensitive on granularity of the slider (esp brightness), however the response of them effecting anything seems like the environment is bogged down drawing the window and ignoring slider input until it can catch its breath.
Re:Lavalamp.app by mkarliner on Wednesday November 18, 2020 @12:26AM (#25133510)
I'd like a slider to control viscosity/stringiness. It's a nice idea, but I agree the sliders need work.
Re:Lavalamp.app by narco_snow on Thursday November 19, 2020 @11:15PM (#25157253)
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

Re:Lavalamp.app by ggoo on Tuesday November 17, 2020 @05:52PM (#25131011)
Laval.app was too expensive I'm guessing
Re:Lavalamp.app by ebg13 on Tuesday November 17, 2020 @05:58PM (#25131060)
And .amp doesn't allow public registration.
Re:Lavalamp.app by pugworthy on Tuesday November 17, 2020 @07:40PM (#25131803)
Err... lavala.mp

*which of course is already taken

Re:Lavalamp.app by tempodox on Tuesday November 17, 2020 @06:37PM (#25131359)
The default colors are pure torture and the HSV sliders don't function correctly.
Re:Lavalamp.app by narco_snow on Thursday November 19, 2020 @11:17PM (#25157260)
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.
Re:Lavalamp.app by enos_feedler on Tuesday November 17, 2020 @06:13PM (#25131187)
Ah doesn’t work in my browser. Promise of the web in action
Re:Lavalamp.app by corobo on Tuesday November 17, 2020 @06:15PM (#25131194)
Does it actually not work or did you not give it enough time to warm up? It's a lava lamp!
Re:Lavalamp.app by binarycodedhex on Wednesday November 18, 2020 @04:43AM (#25134902)
I had to buy brakleen, candle wax, candle dye, distilled water, ethylene glycol, dish soap, food coloring, and a capping machine to fix mine. What a PITA. Old lava lamps bought off eBay. I should've just hit the refresh button and waited.
Re:Lavalamp.app by ebg13 on Tuesday November 17, 2020 @05:42PM (#25130915)
Vertically oscillating metaballs don't really look much like a lava lamp.
Re:Lavalamp.app by narco_snow on Thursday November 19, 2020 @11:18PM (#25157269)
I mean... Kinda. Lol. Just enjoy the pretty colors and stop being a curmudgeon.