INNER CODE UNIT · JavaScript

R2

paladin-t/bitty · lib/fast_noise/JavaScript/FastNoiseLite.js:387

        let R2 = (x, y) => {
            x *= this._Frequency;
            y *= this._Frequency;

            switch (this._NoiseType) {
                case FastNoiseLite.NoiseType.OpenSimplex2:
                case FastNoiseLite.NoiseType.OpenSimplex2S:
                    const SQRT3 = 1.7320508075688772935274463415059;
                    const F2 = 0.5 * (SQRT3 - 1);
                    let t = (x + y) * F2;
                    x += t;
                    y += t;
                    break;
                default:
                    break;
            }

            switch (this._FractalType) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…