~sjb/ten-print-bitmap

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~sjb/ten-print-bitmap
read/write
git@git.sr.ht:~sjb/ten-print-bitmap

You can also use your local clone with git send-email.

Generates an image in the style of the Commodore 64 program 10 PRINT CHR$(205.5+RND(1)); : GOTO 10

Usage:

  • Edit the #define statements to set the colours and size
  • Change the seed in the srand() call to make a different pattern

Then compile and run:

cc 10print.c
./a.out > image.ppm