Small changes to art. Back to previous algorithm

This commit is contained in:
Dr-Noob
2021-03-30 22:43:28 +02:00
parent 7c5a0c3280
commit eeeaec3ba9
3 changed files with 6 additions and 15 deletions

File diff suppressed because one or more lines are too long

View File

@@ -9,11 +9,11 @@
█▛ ███ ▐██ ▕██▌ ▐██▌ ▐██▂▂▂▂▂██ ███ ▗███▘ █▛ ███ ▐██ ▕██▌ ▐██▌ ▐██▂▂▂▂▂██ ███ ▗███▘
▐█▍ ███ ▐██ ▕██▌ ▐██▌ ▐██▛▀▀▀▀▀▀ ███ ▄██▛▘ ▐█▍ ███ ▐██ ▕██▌ ▐██▌ ▐██▛▀▀▀▀▀▀ ███ ▄██▛▘
██▏ ███ ▐██ ▕██▌ ▐██▌ ▝██▙▁ ▁▂▃ ███ ▅███▀ ██▏ ███ ▐██ ▕██▌ ▐██▌ ▝██▙▁ ▁▂▃ ███ ▅███▀
██▍ ▝██ ▐██ ▕██▌ ▀███▋ ▝▀█████▛ ▝▜█ █▀▔ ██▍ ▝██ ▐██ ▕██▌ ▀███▋ ▝▀█████▛ ▝▜█ █▀▔
▐█▙ ▔▔▔ ▐█▙ ▔▔▔
▜█▙▖ ▁▂▄▖ ▜█▙▖ ▁▂▄▖
▜██▆▃▁ ▁▂▄▅▇███▌ ▜██▆▃▁ ▁▂▄▅▇███▌
▝▜███▇▅▄▃▂▁ ▁▁▂▃▄▅▆▇███████▀▀ ▝▜███▇▅▄▃▂▁ ▁▁▂▃▄▅▆▇███████▀▀
▔▀▀████████▇▇▇▇▇▇▇▇▇▇███████████▛▀▀▔▔ ▔▀▀████████▇▇▇▇▇▇▇▇▇▇███████████▛▀▀▔▔
▔▔▀▀▀▀█████████████▀▀▀▀▀▔▔▔ ▔▔▀▀▀▀█████████████▀▀▀▀▀▔▔▔

View File

@@ -367,22 +367,13 @@ void print_algorithm_intel(struct ascii* art, int n, bool* flag) {
start = i; start = i;
} }
} }
for(int i=start+1, x=0; art->art_unicode[i] != '\n'; i++, x++) { for(int i=start+1, x=0; art->art_unicode[i] != '\n'; i++, x++) {
if(art->art_unicode[i] == ' ') { if(art->art_unicode[i] == ' ') {
if(x > 2 && x < (LINE_SIZE-2) && n < NUMBER_OF_LINES-1) {
printf("%s", art->color2_ascii);
printf("%c", 0xE2);
printf("%c", 0x96);
printf("%c", 0x88);
printf("%s", COLOR_RESET);
}
else {
printf(" "); printf(" ");
} }
}
else { else {
// 15,125,194:230,230,230:40,150,220:230,230,230 printf("%s", art->color1_ascii);
printf("%s", "\x1b[38;2;15;125;194;48;2;230;230;230m");
printf("%c", art->art_unicode[i]); printf("%c", art->art_unicode[i]);
printf("%c", art->art_unicode[i + 1]); printf("%c", art->art_unicode[i + 1]);
printf("%c", art->art_unicode[i + 2]); printf("%c", art->art_unicode[i + 2]);