SimplexNoise constructor
SimplexNoise([
- Random? r
Implementation
SimplexNoise([math.Random? r]) {
r ??= math.Random();
final p = List<int>.generate(256, (_) => r!.nextInt(256), growable: false);
_perm = List<int>.generate(p.length * 2, (int i) => p[i % p.length],
growable: false);
_permMod12 = List<int>.generate(_perm.length, (int i) => _perm[i] % 12,
growable: false);
}