jwagner / simplex-noise.js

A fast simplex noise implementation in Javascript / Typescript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typo in readme

Aaron193 opened this issue · comments

commented

Under the section called "Initialization with a seed", it looks like the function call Alea('seed') should be alea('seed') instead.

import { createNoise2D } from 'simplex-noise';
import alea from 'alea';
const noise2D = createNoise2D(Alea('seed')); // this line
const value2d = noise2D(x, y);

Alea for some reason capitalizes the export: https://github.com/coverslide/node-alea/blob/master/index.d.ts
But you are totally right, the import is lower case, functions should be lower case anyways, so the call should be lower case as well. :)

Fixed in c3ff219, thanks for the report!