We don't bite newbies here... much | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The GIF file format is widely described on the internet. One of the better descriptions is here. This piece of code tweaks the global colour table (simply reversing the indexes):
To do things properly, you would need to check the size of the colour table entry (see byte 10-bits 4..7 of the header) and account for colour tables that use less that 24-bits per entry. Also, you should check bit-0 of the same byte to determine if global or local colour tables are in use, but the code may get you started. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.
In reply to Re: gif colour changes
by BrowserUk
|
|