How to set background color in X16 Basic?

All aspects of programming on the Commander X16.
Post Reply
KaiLikesToCode
Posts: 6
Joined: Sun Sep 17, 2023 2:28 pm

General - CX16 How to set background color in X16 Basic?

Post by KaiLikesToCode »

You can set text color by using COLOR. How do I do background color?
DragWx
Posts: 327
Joined: Tue Mar 07, 2023 9:07 pm

Re: How to set background color in X16 Basic?

Post by DragWx »

"COLOR [foreground], [background]" will set the foreground and the background color of all new text printed from that moment on.

If you do "CLS" afterwards, the screen will clear, filling itself with the new background color.
Post Reply