Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Cool piece of code. Water on the moon.

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #169959
    nixnerd
    Participant

    Hey boys and girls,
    Here’s a little piece of code I found on Hacker News today. Well, it was a link to a tutorial on how to create this:

    http://codepen.io/Joe_Temp/full/EnzHG

    #169976
    __
    Participant

    Oh, wow. That’s awesome.

    #169981
    nixnerd
    Participant

    Right? Now what would be really cool is if you could prevent it from being random to create ACTUAL models. Perhaps you could put some sort of ceiling on how high the fractals go, in order to create a topographic map with nothing but JS. That would be sick.

    #170041
    __
    Participant

    Looks like you could log the random values (maybe indexed by x value?), and then pass them into the divide method.

    That could let you recreate specific maps. As for creating something specific to start with, that’d be way harder.

    #170061
    Rohithzr
    Participant

    it can be done, if you can show it randomly then you can mouth feed the values but that’s the thing. every fractal will have to have a specific value (until there is a pattern)

    EDIT: Pattern can be something like
    fractal x[20000] is highest point and fractal x[200] is lowest and it is a steep from the former to later with a exception of x[250]tox[255] an x [750] to x[900] which is flat ….

    and so we can do something like a –x loop with a few ifs and buts :P

    #170062
    nixnerd
    Participant

    You guys are badasses. True logistics men… assuming you’re both dudes. How sexist of me.

    #170089
    __
    Participant

    it can be done, …

    Oh, for sure. I was just imaging how tedious/frustrating it might be, especially if you were trying to produce a specific topology. Finding a way to replicate an existing pattern seemed the easier course, to me. : )

    … assuming you’re both dudes. How sexist of me.

    I think you already knew I was a guy, so you’re halfway in the clear.

    #170103
    nixnerd
    Participant

    I think you already knew I was a guy, so you’re halfway in the clear.

    This IS the Internet. Anyone can be anybody. You never know and I’m bad about assuming things.

    #170106
    __
    Participant

    true.

    #170109
    nixnerd
    Participant

    Just kidding. I’m 99.9% sure you’re male. Pretty sure female Raptors don’t do that thing with their claw when they’re thinking.

    I was more talking about @Rohithzr. The name isn’t telling me much.

    #170116
    Rohithzr
    Participant

    @Joe_Temp Ha I am pretty much a male of 19. :D So i guess you just crossed the finish line

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Other’ is closed to new topics and replies.