Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
768 -> 1024 byte palette conversion...
#11
With that code I got a 2 byte file.

I think this isn't working the way you expect it to:
Code:
PUT #1, 1, PalArray
Try this instead:
Code:
FOR i% = 0 TO 255
   PUT #1, , PalArray(i%)
NEXT i%
Reply
#12
Quote:all the pp256 pal is, is just 256bytes of extra wastage put in between each color index.

Curious. Maybe it's done that way to allow for easy location of specific colors in the palette. I could see the wasted byte holding the number of the color.

Maybe even for future expansion while holding backwards compatibility. :???:
Reply
#13
It works now. Thanks for your help everyone
Reply
#14
Quote:
Nexinarus Wrote:all the pp256 pal is, is just 256bytes of extra wastage put in between each color index.

Curious. Maybe it's done that way to allow for easy location of specific colors in the palette. I could see the wasted byte holding the number of the color.

Maybe even for future expansion while holding backwards compatibility. :???:

It's done that way to be able to load them directly in LONG variables and use the sucky PALETTE to set the DAC registers.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)