The problem is that this won't work with me, only when I use GCOL. Hence the swap.DavidS wrote:
This will only work in an indexed palette mode. Though I did wonder if it was the solution OP was misremembering.DavidS wrote:COLOUR 7,rc%,gc%,bc%
You are quite right, COLOUR r,g,b seems to work for the current colour. The VDU code I talked about was published in the Acorn User some 20 or so years ago. Possibly the problem was worse under RiscOs 3.5. As I always wrote for the WIMP, text colours were generally not important. It's the Raspberry Pi and writing non wimp programs that gave me the problem. I was trying to store two colours and call them on alternate cycles of a program I'm writing that decodes the Frankfurt DCF atomic clock. With a small work-around it works fine now.jojopi wrote:This will only work in an indexed palette mode. Though I did wonder if it was the solution OP was misremembering.DavidS wrote:COLOUR 7,rc%,gc%,bc%
Another possible hack is GCOL r,g,b:VDU 5. But that prints text at the graphics cursor, with a transparent background, and generally very slowly. And is the r,g,b form of GCOL really older than the r,g,b form of COLOUR?
I can find no evidence of a VDU to swap text and graphics colors. Indeed the modern practice seems to be to set colors with SWI not VDU.
For anyone unable to check HELP: the problem no longer exists. COLOUR r,g,b is fine.