TILE-4C.BAS - GW-BASIC, 4-color tiling pattern

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



Duration: 3:19
139 views
2


I made this after learning about the PAINT command's ability to tile with a pattern stored in a string (which is used to store binary data). The tiling showcases the 4 colors in a 2x2 cube that is then reversed for the next 2x2 cube. I must have done this because it disallows the pattern of a single bright color from showing itself too much in a grid pattern. However, this prevents allowing a checkerboard pattern. Therefore I change the code in real-time to disable that 2nd 2x2 cube. In this manner, the first 2x2 cube of 4 colors is repeatedly patterned. It's a pretty powerful optional that you can provide whatever pattern and sized tiling you prefer.

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