I also reviewed the field service manuals for the 2600, 5200, and 400/800 computers. Contrary to my previous belief, they *do* say that hue 15 should be adjusted via the color delay pot so it's the same as hue 1. I'd previously interpreted the wording to mean that hue 15 should be adjusted to fall somewhere between hue 1 and hue 2, because that's what the values in the GTIA documentation indicate (the time delay values it gives work out to a phase shift delay of about 27 degrees). But the illustrations in all three field service manuals clearly indicate that hue 15 and hue 1 should be the same color! I'll come back to this in a moment.
Another thing I found interesting is that Eric Ball's formulas-- or more specifically, the luma step increase he gave-- generate a palette that looks too dark, as everyone who replied to his posts had stated. However, I have an actual screenshot from my heavy sixer that I'd recorded to DVD, and not only does *it* look too dark when viewed on my computer screen, but it's actually a little bit *darker* than the palette Eric Ball's formulas produce! The difference between how dark the screenshot looks on my computer monitor versus how it looks on my TV must be due to the differences in the gamma, as well as the overall brightness settings.
So here's what I fnd so odd about the phase delay. When I set it so hue 15 is the same as hue 1, the palette actually does look "correct," although hue 15 and hue 1 don't look the same. Nevertheless, they are exactly the same, so their apparent difference is just an optical illusion because of the surrounding colors.
Also, I've compared different documents that specify or imply different phase delays.
For example, the documentation for the CGIA chip (which, as far as I know, was never produced) specifically stiplulates a phase delay of 24 degrees, which gives 15 different hues that are equally-spaced around the Y'IQ/Y'UV color wheel. This actually seems to match the way my heavy sixer is adjusted (which I didn't do myself; it came that way when I bought it a few years ago).
The Stella programming guide doesn't stipulate the phase delay value, but it does imply that the colors are equally-spaced over nearly 360 degrees, which *could* mean a 24-degree delay such that the span from hue 1 to hue 15 is 336 degrees (nearly 360 degrees obviously means *less* than 360 degrees).
As already noted, the field service manuals say hue 15 should be the same as hue 1, which is a phase delay of about 25.7 degrees (360 degrees divided by 14).
As I said above, the GTIA documentation lists timing values for each of the hues that are equivalent to a phase delay of about 27 degrees, which puts hue 15 exactly two-thirds of the way between hue 1 and hue 2.
I've also worked out several other possible phase delays between 24 degrees and 28 degrees, such as red=hue4, blue=hue9, blue=hue8, green=hue13, green=hue12, yellow=hue15, hue15="hue1.5" (exactly halfway between hue1 and hue2), and a setting that gives the closest simultaneous fit for red/green/blue (where red~hue4, blue~hue8, and green~hue12). Obviously, since different people might prefer to adjust the color delay pot differently, I want my palette generator to be adjustable. Personally, I feel rather strongly that hue15 should *not* be set equal to hue1, otherwise there's only 120 different colors, not 128.
Anyway, here's a few screenshots from my (unfinished) program, along with the screenshot from my heavy sixer, and one from my 7800.
First, my heavy sixer:
My 7800:
My Visual Basic program, with a delay of 24 degrees, as per the CGIA documentation (compare to my heavy sixer):
My program, with hue15=hue1, as per the FSM (they may *look* different, but are exactly the same):
My program, with a delay of 27 degrees, as per the GTIA documentation:
When I complete my program, I'll post it here so people can use it to create palette files for their emulators if they want.
Michael














