Merge pull request #2 from sidekek/namefix

args
master
sidekek 5 years ago committed by GitHub
commit ffae2a3e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      Program.cs

@ -7,10 +7,23 @@ namespace kot
{ {
static void Main(string[] args) static void Main(string[] args)
{ {
if (args.Length < 1)
{
Console.WriteLine("missing input argument, pass \'help\' for more info");
System.Environment.Exit(0);
}
if (args[0] == "help")
{
Console.WriteLine(@"maek ascii !!
kot <input>
input argument /must/ be of types: {jpg, jpeg, png, bmp,}");
System.Environment.Exit(0);
}
string path = args[0];
string final = ""; string final = "";
string[] scale = {".",",",":",";","+","*","?","%","S","#","@"}; string[] scale = {".",",",":",";","+","*","?","%","S","#","@"};
//Array.Reverse(scale); //Array.Reverse(scale);
var f = new Bitmap("./kurisu.jpg"); var f = new Bitmap(path);
for (int i = 0; i < f.Height; i += 30) for (int i = 0; i < f.Height; i += 30)
{ {
for (int z = 0; z < f.Width; z += 30) for (int z = 0; z < f.Width; z += 30)

Loading…
Cancel
Save