MIX*.BAS - GW-BASIC, mix 16-color in 320x200 & 4-color in 640x200

MIX*.BAS - GW-BASIC, mix 16-color in 320x200 & 4-color in 640x200

Subscribers:
831
Published on ● Video Link: https://www.youtube.com/watch?v=Qj20OH4uAMA



Duration: 3:07
163 views
1


Using the PAINT command, you can give a binary pattern as a string, which is created with the STR$() function. This allows a pattern of multiple rows, and up to 4 or 8 pixels depending on the number of colors for that screen mode (which dictates the number of colors per byte). It must figure out the byte pattern to write to VRAM for fast painting. MIX1.BAS was correctly mixing all 16 colors with each other, which the Sierra Quest games did to great effect in their artwork. MIX2.BAS was actually incorrect; and I was only setting every 2nd pixel; it must've been too blurry on my CRT at the time to tell; so I fixed it up for this video, and renamed them MIX32016 and MIX6404 to make it clear what each program does. Because the 4-color is limited, but still has access to all 16 Tandy/EGA colors, the program allows you to change the palette. I recall fill the screen with checkboard blue and red, and I could not make out single pixels no matter how closely I viewed the 640x200 screen. It was such high resolution! It was simply displayed as purple, even up close.

This is running on PC-BASIC emulator.


My playlists:
--------------------
- Voxel: https://youtu.be/watch?v=XCVWEuhCCDM&list=PLjnbT4UISq0bQF1g85tE9jTrKfEtdRYlY
- Road: https://youtu.be/watch?v=ck5ALX11YU4&list=PLjnbT4UISq0bnfd1RC3M4PgTgkmhlkikV
- Ray Casting 3D: https://youtu.be/watch?v=zjswXUTMP2o&list=PLjnbT4UISq0YcFtRFjFQqK0g6ONNCtrvY
- Side-Scroll Shmup: https://youtu.be/watch?v=fF4X8zN-Raw&list=PLjnbT4UISq0Y_7IAN_zUzxgZnfhXxo_0Q
- MonoGame Tutorial: https://youtube.com/watch?v=WW1dJnfXWb0&list=PLjnbT4UISq0adw__Y9B2eXA0LL35TyORU

My websites:
---------------------
- my GitHub: https://github.com/JDoucette
- my company: http://xona.com
- my Blog: http://thefirstpixel.com