Skip to content

Instantly share code, notes, and snippets.

@monomere
Created July 21, 2024 00:27
Show Gist options
  • Save monomere/21af2517560ee5e50d9e648c4c1963bb to your computer and use it in GitHub Desktop.
Save monomere/21af2517560ee5e50d9e648c4c1963bb to your computer and use it in GitHub Desktop.
prints ascii-drawing digits 0-9.
// CC-BY-3 // monomere // A[1] = '█' //
#include <stdio.h>
int F[]={56,0,11,48,56,51,40,20,1972,0}
,x,y,i,j,b,d,D[6];char*A=" #";void p(){
d=0x7bff-16*j-2*(!d?d:d-64-j/6*3072+(16
<<(1<<(((j+3)/4*3+1)/2))));for(i=5;i-->
0;){b=d>>(i*3)&7;printf("%c%c%c\n",A[b/
4],A[b/2%2],A[b&1]);}putchar('\n');}int
main(){for(j=10;d=F[j-1],j-->0;)p();}//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment