perlin_noise.SmoothNoise1D Class Reference

Class for generating smooth noise. More...

List of all members.

Public Member Functions

def __init__
 Constructs a new SmoothNoise object.
def generate
 Generates a grid with the smooth noise.
def linear_interpolation

Public Attributes

 nois_fn
 uniform_noise
 length
 interpolation


Detailed Description

Class for generating smooth noise.

Successive calls to generate will use the same underlying grid of uniform noise to sample from.

Definition at line 302 of file perlin_noise.py.


Member Function Documentation

def perlin_noise.SmoothNoise1D.__init__ (   self,
  length,
  noise_fn = make_uniform_noise_1d,
  interpolation = 'linear' 
)

Constructs a new SmoothNoise object.

Parameters:
width Width of the grid to generate
height Height of the grid to generate
noise_fn A function that takes two arguments (the grid dimensions) and return a grid of noise
interpolation A string that specifies what interpolation scheme to use. Can be 'linear', 'cosine', or 'cubic'.

Definition at line 313 of file perlin_noise.py.

def perlin_noise.SmoothNoise1D.generate (   self,
  k 
)

Generates a grid with the smooth noise.

Parameters:
k The sampling distance, usually a power of 2. If k == 1, every point in the uniform noise grid is sampled and the returned grid is equivalent to the uniform noise grid.

Definition at line 335 of file perlin_noise.py.

def perlin_noise.SmoothNoise1D.linear_interpolation (   self,
  k 
)

Definition at line 338 of file perlin_noise.py.


Member Data Documentation

Definition at line 320 of file perlin_noise.py.

Definition at line 317 of file perlin_noise.py.

Definition at line 314 of file perlin_noise.py.

Definition at line 315 of file perlin_noise.py.


The documentation for this class was generated from the following file:

Generated on Sun May 24 21:48:22 2009 by  doxygen 1.5.8