(03-07-2025, 08:19 PM)madscijr Wrote:(03-07-2025, 07:45 PM)bplus Wrote: Here is alternate way to handle font sheet I came up with 7 years ago:
Cool, thanks for sharing. Can it quickly change the fg & bg color of a character on the fly?
Foreground colors are in the tiles; backcolor is trasparent so prints only colored stuff from the bmp file.
Remember the bmp file is a giant image and you have to pick out the sections for the letters off the image that is what the 2 subs do in demo code. One picks out the letter coordinates of image, the other "prints" out the type in images on screen. The alternate method is about displaying images as opposed to printing a font.
b = b + ...