Пример #1
0
        private Bitmap GetNoiseBitmap()
        {
            fastNoise = new FastNoiseBase(Seed);

            fastNoise.SetFrequency(Frequency);
            fastNoise.SetInterp((FastNoiseBase.Interp)(int) InterpolationMode);

            fastNoise.SetFractalType((FastNoiseBase.FractalType)(int) FractalMode);
            fastNoise.SetFractalOctaves(Octaves);
            fastNoise.SetFractalLacunarity(Lacunarity);
            fastNoise.SetFractalGain(Gain);

            SetPerturbance(10, 0.01);

            return(new Bitmap(Width, Height));
        }
Пример #2
0
        private Bitmap GetCellularBitmap()
        {
            fastNoise = new FastNoiseBase(Seed);

            fastNoise.SetFrequency(Frequency);
            fastNoise.SetInterp((FastNoiseBase.Interp)(int) InterpolationMode);

            fastNoise.SetCellularJitter((float)Jitter);

            fastNoise.SetCellularDistanceFunction((FastNoiseBase.CellularDistanceFunction)CellularMode);
            fastNoise.SetCellularReturnType((FastNoiseBase.CellularReturnType)CellularOutput);

            fastNoise.SetCellularDistance2Indicies(Index0, Index1);

            SetPerturbance(10, 0.01);

            return(new Bitmap(Width, Height));
        }