A better -F option

This commit is contained in:
Angel Jumbo 2022-10-17 11:10:04 -05:00
parent c28bd26a10
commit 9a8ce1575d

14
lavat.c
View File

@ -107,24 +107,12 @@ int main(int argc, char *argv[]) {
} }
} else { } else {
if (sum[0] > radius) { if (sum[0] > radius) {
if (sum[1] > radius) {
tb_printf(i, j, color | TB_BOLD, 0, custom);
} else {
tb_printf(i, j, color | TB_BOLD, 0, custom);
}
} else if (sum[1] > radius) {
tb_printf(i, j, color | TB_BOLD, 0, custom); tb_printf(i, j, color | TB_BOLD, 0, custom);
} }
if (rim) { if (rim) {
if (sum[0] > innerRadius) { if (sum[0] > innerRadius) {
if (sum[1] > innerRadius) { tb_printf(i, j, color, 0, custom);
tb_printf(i, j, color, 0, custom);
} else {
tb_printf(i, j, color | TB_BOLD, color, custom);
}
} else if (sum[1] > innerRadius) {
tb_printf(i, j, color | TB_BOLD, color, custom);
} }
} }
} }