Generate small islands with perlin noise!
Take a look at the live demo.
npm install crusoe | yarn install crusoe
Use with node:
var crusoe = require('crusoe')
// Generate the island data
var map = crusoe.generateMap()
// Render island with default colors
var colors = crusoe.renderMap(map)
Use in browser by copying /lib/index.js, then:
var crusoe = window.crusoe
// Generate the island data
var map = crusoe.generateMap()
// Render island with default colors
var colors = crusoe.renderMap(map)
Visit the package readme for a complete documentation.
Thanks to noisejs for sharing a great perlin noise library.