Setting plot foreground colour in 32-bit (24-bit) modes?
Simon Willcocks (1499) 513 posts |
I feel really thick asking this question, but I can’t find a way to say “plot in colour #FA8072” anywhere. (That’s Salmon, rgb(250, 128, 114), btw.) Whatever it is has to update FgEcfOraEor internally, if that helps? We can’t still be limited to GCOL colours, can we? |
Stuart Swales (8827) 1357 posts |
Yup, it’s a BBC Micro really. Use |
Simon Willcocks (1499) 513 posts |
So, pass &FA807200 in R0?
https://www.riscosopen.org/wiki/documentation/show/ColourTrans_SetGCOL |
Stuart Swales (8827) 1357 posts |
The palette entry is &BBGGRR00 format |
Simon Willcocks (1499) 513 posts |
&7280fa00 works, thanks. |
Neil Fazakerley (464) 124 posts |
GCOL 250,128,114 works fine here (or GCOL &FA,&80,&72 if you prefer). |
Stuart Swales (8827) 1357 posts |
For which BASIC calls |
Neil Fazakerley (464) 124 posts |
So what? |
Stuart Swales (8827) 1357 posts |
Simon is doing low-level stuff to replace the kernel, so needs to know the mechanisms involved. |