Yay, it works 🙂 Thank you again, @Hawk !
The code below is a shortened version of my test code. I retyped this truncated version, so it may have a bug.
Now, I need to see if I have some sparkly type sprite images. The broken laptop has an orange "font" (16x16 PNG tiles of letters & numbers) of sorts that was made in Piskell, using three (I think, it has been a while) shades of orange. Those shades of orange need to be changed to nearly black colors, so as to mostly mix in with the black background. As the POINT routine scans down and left to right, when/if it finds a particular shade, that shade will be replaced with a more fire-ish shade and the sparkly sprite will be turned on at that X/Y coordinate. Just thinking of an easy for me to implement title screen thing that would've been around in the early to mid-1980s, but a title screen that would've been required to have been written in assembly.
Edit: the version we are playing around in at home at the moment is searching for two different almost black colors, and doing it in loops similar to lines 250 through 310, except for one more condition, plus a little more stuff. The final will definitely need to be pared down in scope and optimized. Doing like I mention in this edit takes .393 seconds.
Edit 2: @Hawk the floating numbers do indeed represent RGB values. If you were to print the value from the variable ALMOSTBLACK, in line 150 below, you will get 4.28016387e+09 . Now to figure out how those numbers come to be 🙂
Edit 3: Ohhhh, evidently these are RGB plus alpha values! Have a great day and Happy New Year! Nearly 2:30 AM here and the wife wants to watch a movie, so I am off of here for now 🙂
100 SCREEN 14:PALETTE 2
110 TXT$=" SAMPLE TEXT "
113 ' using GPRINT and 8 px wide chars below, so get length * 8
114 ' & /2 for centering text
119 ' screen dimensions in X and Y
119 ' center x and center y
138 ' a yellow similar to 172 in palette 0 from my
139 ' initial tests
148 ' not as darkly colored as to what it will be
149 ' it is slightly visible for demo purposes
200 COLOR ALMOSTBLACK
208 ' CY-4 to center in Y axis and to take 8 px high
209 ' chars into account
210 GPRINT CX-TXT,CY-4,TXT$;
248 ' scanning entire screen for this demo only
249 ' final program needn't scan entire screen
250 FOR Y=0 TO MAXY
260 FOR X=0 TO MAXX
280 IF PX=ALMOSTBLACK THEN
290 PSET X,Y,YELLOW1
300 NEXT X
310 NEXT Y