-
-
Save GabrielFreeze/abe58f833e4b5aae3de3c84aa90cbbfa to your computer and use it in GitHub Desktop.
O
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define N 32 | |
#define R 12 | |
/* _________ | |
_#############_ | |
_#################_ | |
##################### | |
####################### | |
####################### | |
####################### | |
####################### | |
^#####################^ | |
^###################^ | |
^###############^ | |
^^#########^^ */ | |
int main() { | |
for (int j = N/2; j > N/2-N; j-=2) { | |
for (int i = N/2; i > N/2-N; i--) { | |
unsigned char a = i*i+j*j < R*R; | |
unsigned char b = i*i+(j-1)*(j-1) < R*R; | |
putc(0x477AFA0>>7*((a<<1)|b)&0x7f,stdout); | |
} | |
putc('\n',stdout); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment