explore.textmode.art

Tags / Feed

#alttext

Subscribe

1 public artworks tagged #alttext, from Mastodon.

Search runs automatically after you pause typing.
Keep at least one source selected.
Type a tag and use the arrow keys to review suggestions. Press Enter to add the highlighted tag or the tag you typed.
Keep at least one format selected.
Type an identity name or social handle. Use the arrow keys to review suggestions and press Enter to select one.
C source code of the ASCII stereogram generator. #include #include int main(void) { char *aktzeile, *auszeile, *dummy; char c; int spalten, amplitude, i, j, k, ebene; scanf("%d %d\n", &spalten, &litude); aktzeile = (char*) malloc(2*spalten*sizeof(char)+1); auszeile = (char*) malloc(2*spalten*sizeof(char)+1); k=0; while ( (c=getchar()) != EOF ) { ungetc(c, stdin); j=0; fgets(aktzeile, spalten, stdin); scanf("%s\n", &dummy); for (i=0; i'9')? 0 : ((int) aktzeile[j]-'0'); auszeile[j+amplitude] = auszeile[j+ebene]; } auszeile[spalten+amplitude] = (char) 0; printf("%s\n", auszeile); } return 0; }
+2 media

Found this old gem when walking through a pile of old papers. It generates an #ASCII #Stereogram from an input file. Stereograms used to be a big thing decades …

Posted by paulfoerster@swiss.social

End of feed · no more posts