diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..34caaa4 --- /dev/null +++ b/Program.cs @@ -0,0 +1,35 @@ +using System; +using System.Drawing; + +namespace kot +{ + class Program + { + static void Main(string[] args) + { + string final = ""; + string[] scale = {".",",",":",";","+","*","?","%","S","#","@"}; + //Array.Reverse(scale); + var f = new Bitmap("./kurisu.jpg"); + for (int i = 0; i < f.Height; i += 30) + { + for (int z = 0; z < f.Width; z += 30) + { + float bright = f.GetPixel(z, i).GetBrightness(); + string temp = ""; + for (float x = 1; x > 0; x -= .1f) + { + int shit = (int)(x * 10); + if (bright < x) + { + temp = scale[shit]; + } + } + final += temp; + } + final += "\n"; + } + Console.Write(final); + } + } +} diff --git a/kot.csproj b/kot.csproj new file mode 100644 index 0000000..00c269e --- /dev/null +++ b/kot.csproj @@ -0,0 +1,9 @@ + + + Exe + netcoreapp3.1 + + + + + \ No newline at end of file diff --git a/kurisu.jpg b/kurisu.jpg new file mode 100644 index 0000000..e6e5ffc Binary files /dev/null and b/kurisu.jpg differ