jwagner / simplex-noise.js

A fast simplex noise implementation in Javascript / Typescript.
MIT License
1.61k stars 130 forks source link

Typo in readme #62

Closed Aaron193 closed 1 year ago

Aaron193 commented 1 year ago

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);

jwagner commented 1 year ago

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. :)

jwagner commented 1 year ago

Fixed in c3ff2195a0cb1d6fa2d0c77cc2a4410bd2d5acf6, thanks for the report!