Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
It might just be me, but for the life of me I can't make custom palettes work. I used this convpng code:

Code:
#GroupICE            : ice_gfx
#PNGImages           :
 colors
#TransparentColor : 251, 67, 132, 1


With this image (this is scaled up so it's visible):


(Here's the actual -->)

Output:

Code:
| convpng v7.0
| this file contains all the converted graphics

ice_gfx_pallete | 46 bytes
"FD10F70AF9677708F778772CF9EC7ACF779BF72EF52B7908FBDDEB38DEB3FBDD7706F58D2E9B0E193ADAB9ACFA4C"

ice_gfx_transparent_color_index | 0

colors | 26 bytes
4,6,"0804071606020905010310110A0B1412130F0E0D0C150000"


My code in ICE:

Code:
SetPalette('FD10F70AF9677708F778772CF9EC7ACF779BF72EF52B7908FBDDEB38DEB3FBDD7706F58D2E9B0E193ADAB9ACFA4C',46,0)


The result is any time I use a color index, instead of it being what I expect, it's an arbitrary color that has no relation to the expected result.
You should use double quotes, not single ones; only when using double quotes ICE can squish the hexadecimals into a single byte. Hope this helps! Smile
PT_ wrote:
You should use double quotes, not single ones; only when using double quotes ICE can squish the hexadecimals into a single byte. Hope this helps! Smile


Thanks, but
Pi_Runner wrote:
PT_ wrote:
You should use double quotes, not single ones; only when using double quotes ICE can squish the hexadecimals into a single byte. Hope this helps! Smile


Thanks, but

That's exactly what you want Smile This is just a warning that the string is squished (since it might be unintended), but nothing special.
PT_ wrote:
That's exactly what you want Smile This is just a warning that the string is squished (since it might be unintended), but nothing special.


Yeah, and that's what I would have thought, but it gives me no file to download when I try to compile it.
  
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 GMT - 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