Programming in BASIC on the Color Computer Chapter 22 Get and Put
ogStevieStrow
Chapter 22 in Programming in BASIC on the Color Computer deals with the GET and PUT commands which are ways to visually copy and paste graphical objects anywhere on a graphics screen, essentially allowing CoCo BASIC to mimic what SPRITES were on some of the fancier 8-bit systems.
GET and PUT allow you to capture a rectangular area of the screen using two sets of X and Y coordinates to specify the two corners of the object. You then GET this object and store it into an array variable you define at the beginning of your program.
GET and PUT allow you to move objects around the screen and create animation.
There are several different ways to PUT your graphics on the screen, a bit-per-bit method known as PSET which puts all pixels in the array, exactly as captured, erasing any pixels that were on the screen before the PUT.
PRESET does the exact opposite, it's a negative image of the original capture, also erasing any pixels behind the image that was PUT.
AND or and NOT are hybrid methods of putting the image, but only making certain pixels and colors visible depending on the background they are applied to.
I took the original demos in the chapter, some of which required some fixes, and tried my best to explain those, and then go through my own custom examples, that hopefully, provide a better visual as to the process and how various foreground and background colors combine with the various PUT options.
My font routine was included in one of the demos, and the final demo, was a cute, but cheesy arcade style animation demo that shows a space ship "flying" through space, not bod for a few week's work :)
Let me know what you think, and the disk image with these demos will be available on my blog post at chapter-22-get-and-put-its-a-wrap
Thanks for watching, don't forget to like, comment, and subscribe!
Merchandise: http://ogsteviestrow.com/merchandise YouTube: https://youtube.com/ogsteviestrow Facebook: https://www.facebook.com/ogsteviestrow/ Twitter: https://twitter.com/ogsteviestrow Instagram: https://www.instagram.com/ogsteviestrow/ Website: http://ogsteviestrow.com
Pixel art and logos created by Joel M. Adams: https://www.instagram.com/artistjoelmadams/
OG Theme Song by the Gimp of Hallowed Ground Records: https://www.reverbnation.com/gordy669
Original Music by Fran Mann and Side Seat Driver used with permission: https://www.reverbnation.com/franmann
Music from the album Pac-Man Fever used with permission: http://pacmanfevervault.com/ ... https://www.youtube.com/watch?v=SdFOJVdPSAo
154620320 Bytes