aboutsummaryrefslogtreecommitdiffstats
path: root/src/anetz/image.c
blob: 15a24f660d135b700c68bcfc611b6f43d3ff3a5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include <stdio.h>
#include <string.h>
#include "image.h"

const char *image[] = {
	"@w",
	"",
	"                             A-NETZ",
	"@g                                         /",
	"           @w~@g                            /",
	"                @w~@g                      /                      @G/|\\@g",
	"       @w~@g                   ___________/_______               @G//|\\\\@g",
	"   @G/|\\@g                    /|       |        |\\\\           @w~@g  @G//|\\\\@g",
	"@B___@G/|\\@B___________________@g/ |       |        | \\\\@B_____________@G//|\\\\@B__",
	"  @G//|\\\\@g  _/_____________/_(|_______|________|__\\\\________   @G///|\\\\\\@g",
	"  @G//|\\\\@g (                         -            -         \\  @G///|\\\\\\@g",
	"   @G_|_@g  |     _____                           _____       ) @G/  |  \\@g",
	"        =____/@b/   \\@g\\_________________________/@b/   \\@g\\______=   @G_|_",
	"@w_____________@b( (@w*@b) )@w_________________________@b( (@w*@b) )@w________________",
	"              @b\\___/@w                           @b\\___/@w",
	"  =====      ======      ======      ======      ======      ======",
	"",
	"____________________________________________________________________",
	NULL
};

void print_image(void)
{
	int i, j;

	for (i = 0; image[i]; i++) {
		for (j = 0; j < (int)strlen(image[i]); j++) {
			if (image[i][j] == '@') {
				j++;
				switch(image[i][j]) {
				case 'g': /* gray */
					printf("\033[0;37m");
					break;
				case 'G': /* green */
					printf("\033[0;32m");
					break;
				case 'w': /* white */
					printf("\033[1;37m");
					break;
				case 'b': /* brown (yellow) */
					printf("\033[0;33m");
					break;
				case 'B': /* blue */
					printf("\033[0;34m");
					break;
				}
			} else
				printf("%c", image[i][j]);
		}
		printf("\n");
	}
	printf("\033[0;39m");
}