Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.11 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace tree
  8. {
  9.     class Program
  10.     {
  11.         static byte[] colors = new byte[] {
  12.             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  13.             0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x0a, 0x0a, 0x0a, 0x0a, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x0f,
  14.             0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x0a, 0x0a, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  15.             0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00,
  16.             0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  17.             0x00, 0x00, 0x00, 0x00, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x0f,
  18.             0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00,
  19.             0x00, 0x00, 0x0f, 0x00, 0x00, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  20.             0x00, 0x00, 0x00, 0x00, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x00, 0x00, 0x00, 0x0f, 0x00,
  21.             0x00, 0x00, 0x00, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x00, 0x00, 0x00, 0x00,
  22.             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  23.             0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00,
  24.             0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,
  25.         };
  26.         static byte[] chars = new byte[] {
  27.             0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x5c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
  28.             0x20, 0x20, 0x20, 0x20, 0x20, 0x2e, 0x20, 0x2f, 0x78, 0x78, 0x5c, 0x20, 0x20, 0x20, 0x2e, 0x20, 0x20, 0x20, 0x2e,
  29.             0x20, 0x2e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x78, 0x78, 0x5c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
  30.             0x20, 0x20, 0x20, 0x2e, 0x20, 0x20, 0x2f, 0x78, 0x78, 0x78, 0x78, 0x5c, 0x20, 0x20, 0x20, 0x20, 0x2e, 0x20, 0x20,
  31.             0x20, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x5c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
  32.             0x20, 0x20, 0x20, 0x20, 0x2f, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x5c, 0x20, 0x20, 0x20, 0x20, 0x2e,
  33.             0x20, 0x2e, 0x20, 0x20, 0x20, 0x20, 0x2f, 0x78, 0x78, 0x78, 0x78, 0x5c, 0x20, 0x20, 0x20, 0x2e, 0x20, 0x20, 0x20,
  34.             0x20, 0x20, 0x2e, 0x20, 0x20, 0x2f, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x5c, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
  35.             0x20, 0x20, 0x20, 0x20, 0x2f, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x5c, 0x20, 0x20, 0x20, 0x2e, 0x20,
  36.             0x20, 0x20, 0x20, 0x2f, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x5c, 0x20, 0x20, 0x20, 0x20,
  37.             0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x78, 0x78, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
  38.             0x20, 0x2e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x78, 0x78, 0x20, 0x20, 0x20, 0x20, 0x2e, 0x20, 0x20, 0x20, 0x20,
  39.             0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d,
  40.         };
  41.  
  42.         static void Main(string[] args)
  43.         {
  44.             int i = 0;
  45.             Console.WriteLine("");
  46.             for (int y = 0; y < 13; y++)
  47.             {
  48.                 for (int x = 0; x < 19; x++)
  49.                 {
  50.                     int color = colors[i];
  51.                     char ch = (char)chars[i];
  52.                     Console.ForegroundColor = (ConsoleColor)color;
  53.                     Console.Write(ch);
  54.                     i++;
  55.                 }
  56.                 Console.WriteLine("");
  57.             }
  58.             Console.ResetColor();
  59.             Console.ReadKey();
  60.         }
  61.     }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement