Author Topic: binPic2Hex  (Read 2364 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
binPic2Hex
« 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!



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.

« Last Edit: March 10, 2011, 04:41:00 pm by Scout »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: binPic2Hex
« Reply #1 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)
« Last Edit: March 11, 2011, 01:50:41 am by DJ_O »

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: binPic2Hex
« Reply #2 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.



What do you think of that?
« Last Edit: March 11, 2011, 12:59:31 pm by Scout »

Offline ferox

  • LV3 Member (Next: 100)
  • ***
  • Posts: 94
  • Rating: +3/-0
    • View Profile
Re: binPic2Hex
« Reply #3 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  :(
« Last Edit: March 11, 2011, 01:59:28 pm by ferox »
on hold:

Ashbad

  • Guest
Re: binPic2Hex
« Reply #4 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 :)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: binPic2Hex
« Reply #5 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.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: binPic2Hex
« Reply #6 on: March 12, 2011, 03:58:33 am »
Seems fine to me so far. :D

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: binPic2Hex
« Reply #7 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.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: binPic2Hex
« Reply #8 on: March 15, 2011, 04:00:47 pm »
Cool to hear. Keep us updated. :D
« Last Edit: March 15, 2011, 04:01:03 pm by DJ_O »