This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Runtime.CompilerServices; | |
namespace TestCSharpConsoleApplication | |
{ | |
internal static class Program | |
{ | |
private static void Main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
namespace TestCSharpConsoleApplication | |
{ | |
internal static class Program | |
{ | |
private static void Main() | |
{ | |
const int iterations = 500000000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using JetBrains.Annotations; | |
namespace Elena.Compiler.Console | |
{ | |
/// <summary> | |
/// Maps the colours in a bitmap to the nearest Next colour. Uses the palettes from <see cref="PaletteGenerator" />. | |
/// (https://gist.github.com/MrKWatkins/ea62814ed78b79edf8c5aa4902652ff3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Drawing; | |
using System.IO; | |
using JetBrains.Annotations; | |
namespace Elena.Compiler.Console | |
{ | |
/// <summary> | |
/// Utility class to write out 8 and 9-bit Next palettes in Gimp GPL format. | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIMP Palette | |
Name: ZX Spectrum Next 8-Bit | |
Columns: 16 | |
# | |
0 0 0 Index 0 | |
0 0 85 Index 1 | |
0 0 170 Index 2 | |
0 0 255 Index 3 | |
0 36 0 Index 4 | |
0 36 85 Index 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIMP Palette | |
Name: ZX Spectrum Next 9-Bit | |
Columns: 16 | |
# | |
0 0 0 Index 0 | |
0 0 36 Index 1 | |
0 0 72 Index 2 | |
0 0 108 Index 3 | |
0 0 144 Index 4 | |
0 0 180 Index 5 |