コード例 #1
0
        static void Main(string[] args)
        {
            GlobalValue.ImportConfig(File.ReadAllText("Config.json"));
            File.WriteAllText("Config.json", GlobalValue.ExportConfig());
            IGenerator generator = new RainbowCircleGenerator();
            var        img       = generator.Generate <Rgba32>();

            Console.WriteLine("Generate finished.");
            img.Save(GlobalValue.outPath);
            Console.WriteLine("Saved to " + GlobalValue.outPath);
        }