04-09-2025, 11:49 PM
(04-09-2025, 09:55 PM)CMR Wrote: Thanks everyone. I appreciate the welcome. Be prepared. I'm sure I'll have plenty more dumb questions. Did you know you can't set the _ClearColor _RGB() for an image before you setup your screen? I just found that one out today! It works when you grab a point from the background like the examples show, though. I'm guessing it has something to do with the screens default bit depth before Screen _NewImage is called.
From the way this sounds to me, you were trying to do something like:
_CLEARCOLOR _RGB(r, g, b)
SCREEN _NEWIMAGE(x, y, 32)
The problem here is that you were clearing the color for the default, start up screen, SCREEN 0. THEN you were swapping to a different SCREEN with the _NEWIMAGE.
You can't clear colors on a screen that doesn't even exist yet.

What you could do is something like:
MyScreen = _NewImage(x, y, 32)
_ClearColor _RGB(r, g, b), MyScreen
Screen MyScreen
With the above, you make the screen, clear the color, then swap to that screen after it's all the way the you need it to be.


