Palette problems

new topic     » topic index » view thread      » older message » newer message

Hello,

I am using MS Paint to draw bitmaps for my Euphoria programs but I have
found that if I save it as a 256 color bitmap that any colors that I have
used that do not fall within those 256 are ruined when I save it.

To combat this problem I wrote a program that read the RGB values of the 256
colors used in Euphoria by using get_all_palette so that I could see which
ones were available in Paint. I saved the sequences returned by get_palette
in a file.

Then, I wrote another program in which I could enter the RGB values of the
colors that I wanted to use in Paint and it would go through the list of RGB
values in the file and look for a match. My problem is that whether I use
gets() to read the file or getc() and put the values into a sequence so that
I can use match() everything in the sequences in the file is being getted,
brackets, commas, and all. All I want is for the RGB values to be read.

How would I do this? And am I going about this the long hard route? Is there
some fiendishly simple solution that will save my sanity?

Thanks,
David

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu