JP's Blog

  • GitHub * Flickr * Resume
  • Reviews
  • Programming
  • Photography
  • Maker
  • Writing
  • Research
  • RSS

raco pkg install noise

2021-08-05

What feels like a million years and a lifetime ago, I wrote up a library for perlin and simple noise in Racket. Inspired by Jens Axel Søgaard’s new Sketching library (processing in Racket) and a conversation thereabout, I figure it’s about time to push noise to the raco package manager!

read more...


AoC 2016 Day 13: Noisy Puzzle

2016-12-13

Source: A Maze of Twisty Little Cubicles1

Part 1: Generate a procedurally generated maze using the following equation:

  • x^2 + 3x + 2xy + y + y^2 + c

x and y are the coordinates of a point and c is a constant.

Count the number of bits for each point. Even is open spaces, odd is walls.

What is the shortest route from (0, 0) to (31, 39)?

read more...


Adventures in optimization, re: Typed Racket

2013-04-16

Last Thursday I wrote a post about generating Perlin/simplex noise in Racket. Later that day, I posted to the Racket mailing list asking how I could make it faster. What resulted was a whole sequence of responses (primarily about Typed Racket) and a bit of a rabbit hole that I’m still trying to wrap my head around.

read more...


Perlin and simplex noise in Racket

2013-04-11

Many games need noise. No, not that noise–this noise. Or better yet, this noise. More seriously, noise in this context refers to psuedo-randomly generated images that can be used for natural looking terrain generation1. Something like this:

read more...

  • All posts: By Date
  • All posts: By Tag
  • RSS: All
  • RSS: programming/topics

All posts unless otherwise mentioned are licensed under Creative Commons License

Any source code unless otherwise mentioned is licensed under the 3 clause BSD license