aboutsummaryrefslogtreecommitdiffstats
path: root/src/bnetz/image.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-03-01 18:40:38 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2016-03-13 09:12:11 +0100
commit946c9ce10a92a29584d2e68e9c04fe63dcee7bdc (patch)
treef400ab2212900957e358ef236f07307492ecf2d9 /src/bnetz/image.c
initial git import
Diffstat (limited to 'src/bnetz/image.c')
-rw-r--r--src/bnetz/image.c65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/bnetz/image.c b/src/bnetz/image.c
new file mode 100644
index 0000000..e999e44
--- /dev/null
+++ b/src/bnetz/image.c
@@ -0,0 +1,65 @@
+#include <stdio.h>
+#include <string.h>
+#include "image.h"
+
+const char *image[] = {
+ "@g",
+ "",
+ "",
+ " \\",
+ " \\",
+ " \\",
+ " \\_ @wB-NETZ@g",
+ " \\ \\",
+ " \\_\\___",
+ " / __ )",
+ " (__\\ _\\________",
+ " / _______ )",
+ " / / \\/",
+ " / / ______\\___",
+ " / / / )",
+ " (__\\ / / @w~@g",
+ " \\/ ___ /",
+ " / / \\/ @w~@g",
+ " (______\\ \\",
+ " \\ \\",
+ " \\ \\",
+ " \\ \\",
+ " @w~@g \\ \\",
+ " \\ \\",
+ " \\ \\@G (###)@g",
+ " \\ @G(##))########)",
+ " (#)))################(#))",
+ " (#)#(#######)))#################)",
+ " ((#########)#######################)",
+ "@w=========================================================",
+ NULL
+};
+
+void print_image(void)
+{
+ int i, j;
+
+ for (i = 0; image[i]; i++) {
+ for (j = 0; j < strlen(image[i]); j++) {
+ if (image[i][j] == '@') {
+ j++;
+ switch(image[i][j]) {
+ case 'g':
+ printf("\033[0;37m");
+ break;
+ case 'w':
+ printf("\033[1;37m");
+ break;
+ case 'G':
+ printf("\033[0;32m");
+ break;
+ }
+ } else
+ printf("%c", image[i][j]);
+ }
+ printf("\n");
+ }
+ printf("\033[0;39m");
+}
+