Page 1 of 1

set sprite to 256 colors.

Posted: Sat Aug 03, 2024 1:10 pm
by funkheld
hello, good day.
I would like to set the sprite to 256 colors.
how do I do that please?

thanks.
greetings

Re: set sprite to 256 colors.

Posted: Sat Aug 03, 2024 1:50 pm
by unartic
If you have a sprite 16x16x256colors, you can add it like this:

indx = ADDSPRITE("sprite.bin",16,16,8,0)

The 8 meand 8 bits per pixel which corresponds with 256 colors.

Re: set sprite to 256 colors.

Posted: Sat Aug 03, 2024 2:02 pm
by funkheld
hello, thanks for the info.

I couldn't place the "8".

greetings

Re: set sprite to 256 colors.

Posted: Sat Aug 03, 2024 2:09 pm
by unartic
I'll clarify this in the docs :-)

Re: set sprite to 256 colors.

Posted: Sat Aug 03, 2024 8:30 pm
by mortarm
unartic wrote: Sat Aug 03, 2024 1:50 pm The 8 meand 8 bits per pixel which corresponds with 256 colors.
Unless there's a technical reason, it would be clearer if the actual color depth value could be used.