nutribrain
Still Fresh
Hello everyone,
it's me again. After I solved my troubles with the palette generation and correct display of 8bit images with your help, again I have some questions.
First I wanted to make some sort of slideshow where the images are blended out and then a new image is blended in. For that I tried the GpLcdFade() function. With that function I am able to fade the Lcd to black but when I was trying to fade from black to normal Lcd condition the GpLcdFade() only return 0 when it faded the screen to complete white. It doesn't stop at the normal Lcd condition I get when calling GpLcdNoFade().
So I tried to change each value of the palette array as I'm working with 8bit images. As far as I understand, this palette holds the colour values of each palette entry as a hex value, e.g. '0x2109'. I've read in the starter manual from Gamepark, that the colour values for the GP32 consists of a RGB 5551. 5bit for ®ed(G)reen(B)lue and 1bit for Intensity.
My question now is in which these hex values are constructed. When take the example above you have a hex value '0x2109' which I think could mean that the 2 is the value for ®ed and 1 for (G)reen and 0 for (B)lue but what is the 9 for? Intensity? And if I take another example the hex value '0x1', what does it stands for, why it has only one digit?
It would be very kind if someone could help me with this or point me to a good internet page where this stuff is explained.
BTW, I used the 'GPConverter 1.3' application Edorul to convert my images.
Ciao Chris
it's me again. After I solved my troubles with the palette generation and correct display of 8bit images with your help, again I have some questions.
First I wanted to make some sort of slideshow where the images are blended out and then a new image is blended in. For that I tried the GpLcdFade() function. With that function I am able to fade the Lcd to black but when I was trying to fade from black to normal Lcd condition the GpLcdFade() only return 0 when it faded the screen to complete white. It doesn't stop at the normal Lcd condition I get when calling GpLcdNoFade().
So I tried to change each value of the palette array as I'm working with 8bit images. As far as I understand, this palette holds the colour values of each palette entry as a hex value, e.g. '0x2109'. I've read in the starter manual from Gamepark, that the colour values for the GP32 consists of a RGB 5551. 5bit for ®ed(G)reen(B)lue and 1bit for Intensity.
My question now is in which these hex values are constructed. When take the example above you have a hex value '0x2109' which I think could mean that the 2 is the value for ®ed and 1 for (G)reen and 0 for (B)lue but what is the 9 for? Intensity? And if I take another example the hex value '0x1', what does it stands for, why it has only one digit?
It would be very kind if someone could help me with this or point me to a good internet page where this stuff is explained.
BTW, I used the 'GPConverter 1.3' application Edorul to convert my images.
Ciao Chris