Jason (jcreed) wrote,
Jason
jcreed

Here's a nice easy way to get natural-looking coastline shapes:

It's just alternating two steps:
(1) set the value of each pixel to the median value of a short random walk from the current point
(2) zoom in a little

Plus a little fine-tuning that adds some random black pixels if the center of the image has too many white pixels, and vice-versa, so the image stays "interesting" as it continues to zoom in.
Tags: javascript, maps
Subscribe

  • (no subject)

    Didn't sleep well. Long day of work. Dinner with akiva at hanamichi.

  • (no subject)

    K was going to do a thing for her dad's birthday, but scheduling kept slipping and slipping so I guess we're going to try doing it tomorrow instead.

  • (no subject)

    Had a pleasant lunch with paul and gabe back from working-at-facebook times. Discussed the important issues of the day, by which I mean video games…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments