LingDong- / Okb.js

Procedural generation toolkit for Javascript - noises, randomness, curves, and more
MIT License
60 stars 7 forks source link

Okb.random.blue does not apply the global seed #5

Open wayfu opened 3 years ago

wayfu commented 3 years ago

It uses Math.random instead of Okb's seeded random in the default sampler function (if I change the sampler to use Okb.random.random instead, it works as expected)

LingDong- commented 3 years ago

Hi @wayfu , thanks for the issue! The blue noise seed can now be set with Okb.random.seed (or with blueSeed to set for blue noise specifically). 7c44f66c4f367cf4ba8b324a8b2b4e98c63e9af1