You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Felix Soederhuyzen bf9a2b0d96 added --no-display flag 1 year ago
.gitignore init 1 year ago added --no-display flag 1 year ago added --no-display flag 1 year ago
requirements.txt init 1 year ago


Converts a .bmp to a BASIC sprite display (“DATA”).


$ pip install -r requirements.txt


$ py -h
usage: [-h] [-i FILE] [-n NTH] [-s SCALE] [--no-display]

Converts a bmp to a BASIC Sprite

optional arguments:
  -h, --help            show this help message and exit
  -i FILE, --file FILE  file.bmp (default: image.bmp)
  -n NTH, --nth NTH     nth Pixel to get (default: 5)
  -s SCALE, --scale SCALE
                        Scale of Pixel in bmp to Pixel in Sprite (default: 10)
  --no-display          do not add help code (default: False)


You may need to adjust the colorkey in

$ py -i image.bmp -n 5 -s 10 > sprite.bas

Now you can load sprite.bas in qb64 and run it. Sprite. Yay!