noise2 method

  1. @override
double noise2(
  1. double x,
  2. double y
)
override

Implementation

@override
double noise2(double x, double y) {
  double n = generator.noise2(x, y);

  for (int i = 1; i < octaves; i++) {
    n += generator.noise2(
        (x + (i * 100000)) * gain * i, (y + (i * 100000)) * gain * i);
  }

  return n * multiplier;
}