public static Image <Rgba32> GenerateParallax(TomlTable config, Size size, ISawmill sawmill, List <Image <Rgba32> > debugLayerDump)
        {
            sawmill.Debug("Generating parallax!");
            var generator = new ParallaxGenerator();

            generator._loadConfig(config);

            sawmill.Debug("Timing start!");
            var sw = new Stopwatch();

            sw.Start();
            var image = new Image <Rgba32>(Configuration.Default, size.Width, size.Height, new Rgba32(0, 0, 0, 255));
            var count = 0;

            foreach (var layer in generator.Layers)
            {
                layer.Apply(image);
                debugLayerDump?.Add(image.Clone());
                sawmill.Debug("Layer {0} done!", count++);
            }

            sw.Stop();
            sawmill.Debug("Total time: {0}", sw.Elapsed.TotalSeconds);

            return(image);
        }
        public static Image <Rgba32> GenerateParallax(TomlTable config, Size size)
        {
            Logger.DebugS("parallax", "Generating parallax!");
            var generator = new ParallaxGenerator();

            generator._loadConfig(config);

            var image = new Image <Rgba32>(Configuration.Default, size.Width, size.Height, Rgba32.Black);
            var count = 0;

            foreach (var layer in generator.Layers)
            {
                layer.Apply(image);
                Logger.DebugS("parallax", "Layer {0} done!", count++);
            }

            return(image);
        }