|
Forum Index : Microcontroller and PC projects : CMM2 colour palette bug?
| Author | Message | ||||
| johngill Newbie Joined: 22/09/2020 Location: United KingdomPosts: 38 |
Hi all, I've written a bit of code that draws the red, green colour range in 8 bit colour mode with blue set to 185, as follows: mode 1,8 for y=0 to 7 for x=0 to 7 red=x*36.428 green=y*36.428 box x*10,y*10,10,10,0,0,rgb(red,green,185) next x next y I'm getting a weird off-colour bar at y=3 (green=109) that looks like the blue value goes to zero (see screenshot below). Note it only does this in 8-bit mode. If I switch to 16-bit mode, it displays perfectly. I'm guessing it's something to do with the default 8-bit colour mapping/translation? It does this on RC18 and RC19, I've not tried it on any earlier releases. I thought I'd better report it here. Thanks John |
||||
| paceman Guru Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
Same on my Dell screen - only tried your mode 8 code. Greg |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10588 |
Day 1 typo/bug that no-one has picked up before - thanks - will fix in next release |
||||
| mclout999 Guru Joined: 05/07/2020 Location: United StatesPosts: 492 |
I remembered the first video about the CMM2 https://www.youtube.com/watch?v=lzrX72aB7zg&t=2s and at 8:45 it talks about the nature of the circuitry of the VGA DAC showing that the GREEN channel was 6bit as apposed to RED and BlUE that are only 5bit. He noticed the pattern of colors when he was testing the palet. Is that the issue here? They call me Shai-Hulud (The maker) |
||||
| paceman Guru Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
Problem colourbar all fixed in RC21. Greg |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |