Skip to content

Instantly share code, notes, and snippets.

@GabrielFreeze
Last active July 23, 2022 13:05
Show Gist options
  • Save GabrielFreeze/abe58f833e4b5aae3de3c84aa90cbbfa to your computer and use it in GitHub Desktop.
Save GabrielFreeze/abe58f833e4b5aae3de3c84aa90cbbfa to your computer and use it in GitHub Desktop.
O
#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