Skip to content

spytheman/vperlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vperlin

This is a pure V module that calculates Perlin noise .

Initially based on http://riven8192.blogspot.com/2010/08/calculate-perlinnoise-twice-as-fast.html .

Usage:

v install spytheman.vperlin

... then in your v source:

import spytheman.vperlin as perlin

fn main(){
    println( perlin.noise2d( 1.2, 0.1) )
    println( perlin.noise3d( 1.2, 0.1, 0.21 ) )
    println( perlin.noise4d( 1.2, 0.12, 0.13, 0.15) )
}

Development setup for contribution:

  1. v install spytheman.vperlin
  2. cd ~/.vmodules/spytheman/vperlin
  3. hub fork
  4. git checkout -b my_cool_fix
  5. Make your changes, and commit them, as many times, as you like.
  6. hub pull-request

License

MIT

Contributors