Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Munchor on March 10, 2011, 04:40:23 pm

Title: binPic2Hex
Post by: Munchor on March 10, 2011, 04:40:23 pm
I just made a new program to help you getting the hex code for images, here's a screenshot of it:

I hope this comes handy for Axe programmers!

(http://img.removedfromgame.com/imgs/binPic2Hex.png)

It's very simple, but it has advantages too, it's fast, simple to use and very portable (one file).


Attached is a .py file, so you need Python 2.6 to run it.

I'll be adding more features soon, but still trying to keep it simple since that is its goal.

Title: Re: binPic2Hex
Post by: DJ Omnimaga on March 11, 2011, 01:50:03 am
Nice, I unfortunately can't try it now but do you type each line one by one then it outputs the hex? Does it supports multiple sizes? (16x16 would be nice, with the ability to split the sprite in 4 parts for use in Axe)
Title: Re: binPic2Hex
Post by: Munchor on March 11, 2011, 12:34:33 pm
Yes DJ, you type each line, multiple sizes are possible, I just have to add an initial input for the number of lines.

(http://img.removedfromgame.com/imgs/binPic2Hex2.png)

What do you think of that?
Title: Re: binPic2Hex
Post by: ferox on March 11, 2011, 01:59:17 pm
looks good scout.  ;)

i tried an on-calc bin to hex in which you just selected the area to convert. pitifully it would only do 8x8 and it got erased by a ram clear  :(
Title: Re: binPic2Hex
Post by: Ashbad on March 11, 2011, 02:00:45 pm
I also think that a way to do things like 16x16 sprites would be really cool as well :)
Title: Re: binPic2Hex
Post by: Munchor on March 11, 2011, 02:22:40 pm
I also think that a way to do things like 16x16 sprites would be really cool as well :)


It does 16*16, just doesn't given the code in separate ways, but I'm working on it now.
Title: Re: binPic2Hex
Post by: DJ Omnimaga on March 12, 2011, 03:58:33 am
Seems fine to me so far. :D
Title: Re: binPic2Hex
Post by: Munchor on March 13, 2011, 03:52:49 pm
Seems fine to me so far. :D

I'm making it Java+GUI now and adding that function to split the code, gonna be pretty much epic I hope.
Title: Re: binPic2Hex
Post by: DJ Omnimaga on March 15, 2011, 04:00:47 pm
Cool to hear. Keep us updated. :D