Author Topic: Tweak RGB value of colours using firmware call  (Read 153 times)

0 Members and 1 Guest are viewing this topic.

Offline Kitsune Mifune

  • CPC464
  • **
  • Posts: 18
  • Country: scotland
  • On a retro game making bucket list
  • Liked: 7
  • Likes Given: 3
Tweak RGB value of colours using firmware call
« on: 15:54, 15 October 19 »
Hi folks,

Been messing around in Winape again after a few months and been making progress in regard to graphics/screens etc, and I even managed to come up with a crude but working animation routine.

I'm still using the firmware calls at the moment just to get things working though, but that's ok for now.

Just wanted to ask; I'm using the firmware call &BC32 to set the screen colours, and it works fine as it's called before the main loop, but it seems to be fixed to preset colours linked to the firmware colour numbers. I wouldn't mind tweaking the RGB values of one or two of the colours to get a slightly different shade, but I don't even know if that's possible in the firmware (or indeed, at all). I tried using hex values in place of the firmware numbers, and they did change the colours on the screen, but not to what I expected going by the charts, e.g. #800000 is supposed to be brown/dark red but appears almost black when used in place of a firmware number.

I tried looking at setting the colours without the firmware but it was all a bit over my head TBH as I'm still very much a noob who is doing "press and guess" at the moment.

Anyway, just curious about that question, and any advice would be great.

Thanks!" :)
Unlocking the dark arts of assembly!

Offline andycadley

  • Supporter
  • 6128 Plus
  • *
  • Posts: 853
  • Liked: 409
  • Likes Given: 72
Re: Tweak RGB value of colours using firmware call
« Reply #1 on: 15:57, 15 October 19 »
The CPC has 27 colours to choose from, you're stuck with picking one of those (the Plus machines can do more but the firmware knows nothing about them)

Offline Kitsune Mifune

  • CPC464
  • **
  • Posts: 18
  • Country: scotland
  • On a retro game making bucket list
  • Liked: 7
  • Likes Given: 3
Re: Tweak RGB value of colours using firmware call
« Reply #2 on: 15:59, 15 October 19 »
Ok that's cool, just as long as I know.

Thanks for the reply!
Unlocking the dark arts of assembly!