Example #1
0
        /// <inheritdoc />
        public void Run(IConsole console)
        {
            var schemes = SchemeLoader.LoadAllFromFolder(@"..\..\..\colorschemes")
                          .Concat(new [] { BuildInColorShemes.WindowsDefault, BuildInColorShemes.Windows10Default })
                          .ToArray();

            var controller = new ConsoleController();

            console = new SystemConsole(controller, new ConsoleStartConfiguration(ConsoleStartConfiguration.Colorfull)
            {
                DesiredRowWidth = 128,                            // for bars
                DesiredRowCount = (uint)(10 + 4 * schemes.Length) // many samples...
            });

            console.WriteLine($"Using '{this._heuristic.Name}' heuristics");
            console.WriteLine();

            this.PrintBaseRainbowColors(console);
            foreach (var scheme in schemes)
            {
                this.PrintSchemeRainbowColors(console, scheme);
            }

            console.WaitForNextPage();
        }
Example #2
0
        public void PrintAllschemesWithAllHeauristicsTest()
        {
            var fileSchemes         = SchemeLoader.LoadAllFromFolder(@"..\..\..\..\Demos\colorschemes");
            var fileTerminalSchemes = SchemeLoader.LoadAllFromFolder(@"..\..\..\..\Demos\termschemes");
            var schemes             = (new[] { BuildInColorShemes.WindowsDefault, BuildInColorShemes.Windows10Default })
                                      .Concat(new[] { this._gruchaScheme, this._dnvScheme })
                                      .Concat(fileSchemes)
                                      .Concat(fileTerminalSchemes)
                                      .ToArray();

            foreach (var colorScheme in schemes)
            {
                this.PrintHeuriticComparisonsColorsToHtml(colorScheme);
            }
        }