Ruby Perlin Noise C Module
Ruby C
Switch branches/tags
Nothing to show
Failed to load latest commit information.
LICENSE ruby perlin, meet git Feb 16, 2009 pointing people at the Spooner fork Nov 7, 2012
perlin.c fixed issue #2, appears I should have been using RFLOAT_VALUE(obj) in… Oct 31, 2011

Note - November 7th, 2012

This code has been extended, packaged as a gem, and maintained by Bil Bas here.

Ruby Perlin

A Ruby Perlin implementation based off


	$ ruby extconf.rb
	$ make

Copy the module to wherever you wish to use it.


require 'perlin'

# Takes values Seed, Persistence, and Octaves
p =, 1, 1)
# Returns a z value for (x, y)
puts, 20) 
# Returns an array of z's for range 
# (x_start, y_start, x_end, y_end)
arr = p.return_chunk(0, 0, 16, 16)