class Perlin

Defined in:

perlin.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(repeat = 0) #

[View source]

Instance Method Detail

def fade(t) #

[View source]
def grad(hash, x, y, z) #

Generate random vector to one of the edges


[View source]
def inc(n) #

[View source]
def octave_perlin(point, octaves, persistence) #

[View source]
def perlin(point) #

TODO Make this work for negative x,y,z, too


[View source]