Changing text colour in Mode 0

Software discussion & Emulation
Post Reply
Lardo Boffin
Posts: 296
Joined: Thu Oct 24, 2019 11:47 am

Changing text colour in Mode 0

Post by Lardo Boffin » Sat Mar 20, 2021 11:03 pm

I have been messing around with text and was trying to change the colour of text in a single character without affecting adjacent characters and have been struggling.

Below is a quick demo program written in BBC BASIC:

D9300288-C669-42E8-B3E7-147CA21CBF7A.jpeg
D9300288-C669-42E8-B3E7-147CA21CBF7A.jpeg (4.01 MiB) Viewed 4583 times

In theory the colour of each character should be different but it looks like the colour is actually set each 8 pixels even though the font in mode 0 is 6 pixels wide.

Is there any way round this using mode 0?

It puts me in mind of attribute clash on the Speccy.
TC-01 + einSDein + TM-01 + TK-02 + gotek

Lardo Boffin
Posts: 296
Joined: Thu Oct 24, 2019 11:47 am

Re: Changing text colour in Mode 0

Post by Lardo Boffin » Sat Nov 25, 2023 3:58 pm

Thanks to a magazine purchase from Mike:
IMG_4865.jpeg
IMG_4865.jpeg (3.23 MiB) Viewed 3298 times
IMG_4866.jpeg
IMG_4866.jpeg (3.03 MiB) Viewed 3298 times
IMG_4867.jpeg
IMG_4867.jpeg (3.25 MiB) Viewed 3298 times
TC-01 + einSDein + TM-01 + TK-02 + gotek

retrogamer
Posts: 76
Joined: Tue Jun 01, 2021 12:00 am

Re: Changing text colour in Mode 0

Post by retrogamer » Thu Nov 30, 2023 11:33 am

So the Einstein would need 96K to implement 16 different colours at pixel level!

No wonder the implementation involves compromises.

I hadn't realised the spacing pixel is to the left of the character.

Fascinating stuff!

Post Reply