Posts: 1,272
Threads: 36
Joined: Feb 2003
With that code I got a 2 byte file.
I think this isn't working the way you expect it to:
Try this instead:
Code:
FOR i% = 0 TO 255
PUT #1, , PalArray(i%)
NEXT i%
Posts: 142
Threads: 6
Joined: Aug 2001
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. :???:
Posts: 273
Threads: 51
Joined: May 2002
It works now. Thanks for your help everyone
Posts: 6,419
Threads: 74
Joined: Mar 2002
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.