Home | Mμse | Docs | Art | Music | Videos | Projects | Forum | Shop

For donations, please use PayPal email address 'theouterlinux@protonmail.com' or go to https://linux.locals.com.

"img2qb - The quicker way to create graphics for QuickBasic and FreeBASIC projects" by TheOuterLinux


This is a video of me using a Python script I came up with to convert modern image formats into DATA arrays for easily adding small sprites, graphics or title screens for QuickBasic or FreeBASIC projects. However, if using large WxH sizes, then you will want to use FreeBASIC instead as QuickBasic will throw an error on DATA arrays larger than 160x100 and QB also has a much lower memory limit. Besides, FreeBASIC includes a mouse out-of-the-box, making it a possibility to easily create point-and-click stories; it's just a thought...

In this video, only to prove a point, I use MakeHuman to quickly create a 3D model of a person, Blender to render the model, GIMP to get rid of the background, and then img2qb to create the BASIC scripts to compile using the DOS version of FreeBASIC on DOSBox.

In the video I only made a 16-color and a 256-color version of the image; however, img2qb will also do black and white and CGA colors. The preview images it also produces are for use with modern game engines that need an accurate color palette. And yes, I went through each and every color number in QB and got the RGB values to create the palettes.

You can find the project here: https://theouterlinux.gitlab.io/Projects/Linux/img2qb/img2qb.html

Keywords: Linux, GNU, Devuan, Debian, operating system, PsychOS, retro, old-school, computers, laptops, older hardware, programming, basic, qbasic, quickbasic, freebasic, Python

Video License: CC-BY-NC-ND 4.0