Live data from Hacker News

Show HN: Random Roads

random-roads--edwardcunningh2.repl.co

41–50 of 52 posts

Re: Show HN: Random Roads

#41

This reminds me of the beautiful "substrate" screen saver: http://www.complexification.net/gallery/machines/substrate/

I just got it -- thanks for sharing this! Could watch it for hours... If anyone else wants to download the screensaver, you can get it for linux/osx/ios/android: https://www.jwz.org/xscreensaver/ . Most in the collection aren't great (unless you're in an early-2000s aesthetic mood), but I just installed the substrate one :)

Looks like the author is redirecting the link lol

Re: Show HN: Random Roads

#42

This reminds me of the beautiful "substrate" screen saver: http://www.complexification.net/gallery/machines/substrate/

Ach! this reminds me of an artist who worked mostly with Processing ( https://processing.org ) and either did this or something very like it (and a bunch of other stuff.)

Uh are you sure you're not thinking of Jared Tarbell, who made this very piece in Processing?

Re: Show HN: Random Roads

#43
I feel I'm missing something when people ask what algorithm this is using. I'm imagining it as a bunch of Math.random and If statements. In fact, I don't think I've ever googled for a specific algorithm or implemented one. Am I doing programming wrong?

Re: Show HN: Random Roads

#44
post #42

Earlier quoted context omitted.

Ach! this reminds me of an artist who worked mostly with Processing ( https://processing.org ) and either did this or something very like it (and a bunch of other stuff.)

Uh are you sure you're not thinking of Jared Tarbell, who made this very piece in Processing?

Oh right! Derp.

Re: Show HN: Random Roads

#45
post #12
post #10

Being able to see the random seed used in the console and use it in the hash is a nice touch. I found a few large ones and one with a single path between two points (1592751582695)

Well spotted! I enjoy the large ones (eg. https://random-roads--edwardcunningh2.repl.co/#1589058113269 ) where I imagine the gaps left in the middle to be parks.

There are some very small ones, too.

Re: Show HN: Random Roads

#47
post #43

I feel I'm missing something when people ask what algorithm this is using. I'm imagining it as a bunch of Math.random and If statements. In fact, I don't think I've ever googled for a specific algorithm or implemented one. Am I doing programming wrong?

Looked at the code. You were right! It was random and some rules. Almost like an algorithm.

Re: Show HN: Random Roads

#50
post #22

Reminds me of the Wave Function Collapse algorithm, although doesn't look to be that. https://github.com/mxgmn/WaveFunctionCollapse What algorithm is this using? Got a GitHub link?

If you see a .repl.co or .repl.run link you can get to the source by going to /__repl

Here's the source https://random-roads--edwardcunningh2.repl.co/__repl

Post reply on HN