Typo in readme
Aaron193 opened this issue · comments
Aaron 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);
Jonas Wagner commented
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. :)
Jonas Wagner commented
Fixed in c3ff219, thanks for the report!