After a bit of pondering about an efficient way to palettize 265x165-pixel images, I got SourceCoder 2.5 to generate TI-84+CSE-compatible Picture files. As a refresher, Picture files can contain up to 15 different color (plus transparent pixels). Currently, SourceCoder can generate all fifteen of those colors in images, but not transparent pixels. It does not do dithering, but does do nearest-neighbor matching for indexed color values. Check out two examples below, each with the original on the left and the Picture viewed on a TI-84+CSE at right.





Edit: Thanks to FloppusMaximus' investigation, SourceCoder can now generate Image files, and here is the first known community Image file:

Wow, good job! That top right looks pretty butchered; I can see how this will be a great tool for artists & programmers to test whether or not their background images will display correctly!

Is there any control over which colors? For instance, could there be a green, dark green and light green? Or are we limited to those 15 colors?
comicIDIOT wrote:
Wow, good job! That top right looks pretty butchered; I can see how this will be a great tool for artists & programmers to test whether or not their background images will display correctly!

Is there any control over which colors? For instance, could there be a green, dark green and light green? Or are we limited to those 15 colors?
You're limited to exactly those 15 colors, sadly. I wish there was a light green too; I'm not entirely clear why there is no such thing.
Oh, bummer. I was hoping it could be 15 different colors at a time from the whole color spectrum. But, it'll be rather easy - despite the poor color selection - for artists to create background images that will not be butchered by the calculator. Hopefully sometime after the calculator goes on sale there will be ASM routines and libraries that are able to create whole pallets of colors and free up some creativity.
comicIDIOT wrote:
Oh, bummer. I was hoping it could be 15 different colors at a time from the whole color spectrum. But, it'll be rather easy - despite the poor color selection - for artists to create background images that will not be butchered by the calculator. Hopefully sometime after the calculator goes on sale there will be ASM routines and libraries that are able to create whole pallets of colors and free up some creativity.
Agreed. And remember that there's a separate 16-bit color datatype called the Image, each of which is 133x83 pixels. I haven't looked into the format for those yet, but I'm sure I'll add support to SourceCoder as soon as I figure it out.
KermMartian wrote:
You're limited to exactly those 15 colors, sadly. I wish there was a light green too; I'm not entirely clear why there is no such thing.


I guess they thought you'd rather have orange and those two extra grays. Smile (I've always been pretty tired of the boring old 16-color CGA palette myself.) A palette-based system certainly would have been nice. That'd only require a little extra space in already-huge PICs. Or just not save palette info and leave it up to the program to set up the palette.
Travis wrote:
KermMartian wrote:
You're limited to exactly those 15 colors, sadly. I wish there was a light green too; I'm not entirely clear why there is no such thing.


I guess they thought you'd rather have orange and those two extra grays. Smile (I've always been pretty tired of the boring old 16-color CGA palette myself.)
I'd be willing to give up one of the three blues in exchange for another green, especially on a 5-6-5 display. Razz
Quote:
A palette-based system certainly would have been nice. That'd only require a little extra space in already-huge PICs. Or just not save palette info and leave it up to the program to set up the palette.
That would be really cool too; I guess it will be up to us to create pictures that can encode that. Especially since we have those 165 nibbles in the rightmost column free to play with...
Hmm, interesting. Maybe you could have Doors CS functions for redefining the on-screen color codes for special palette effects. Does the display have any built-in palette-replace functions, or would the whole display have to be manually redrawn? The former would allow some nice color-cycling animations; otherwise you'd probably just be better off with drawing primitives that can draw directly in arbitrary colors.
Thanks to FloppusMaximums' investigation, SourceCoder can now generate Image files, and here is the first known community Image file:

I converted the following picture a few months ago but couldn't open it until today's TI-Connect update. Here is the original:


And here's the converted version:


So far the only issues I see are:
1) The white bar appearing near the right edge of the pic
2) Pics are saved as 8xi files instead of 8ci, so you have to rename the extension manually.

By the way would it be possible to add the ability to create PRIZM BASIC pics in the future (the 8 color ones that can be created on-calc, not the 16 bit ones)?
Would it be possible for SC to dither images using the calc's color palette? The gradient would look a lot better with dithering.
@Kerm: Is there any documentation on the 8ci and 8ca file formats? I'm interested in writing my own library to convert these images to and from traditional bmp, png, jpg, and gif files. I'm aware of the TI Link Protocol & File Format Guide, but that only covers the monochrome 8xi and earlier formats and hasn't been updated since 2006.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement