6bit RGB calculated palette is miscalculated

Create issue
Issue #23 resolved
Sage Pointer created an issue

This palette has issues.

It claims to be calculated, but has strange colors. True hardware 6bit palette color channels are aligned to 00, 55, AA, FF, as listed here.

This is correct version:

  0   0   0 #000000
  0   0  85 #000055
  0   0 170 #0000aa
  0   0 255 #0000ff
 85   0   0 #550000
 85   0  85 #550055
 85   0 170 #5500aa
 85   0 255 #5500ff
170   0   0 #aa0000
170   0  85 #aa0055
170   0 170 #aa00aa
170   0 255 #aa00ff
255   0   0 #ff0000
255   0  85 #ff0055
255   0 170 #ff00aa
255   0 255 #ff00ff
  0  85   0 #005500
  0  85  85 #005555
  0  85 170 #0055aa
  0  85 255 #0055ff
 85  85   0 #555500
 85  85  85 #555555
 85  85 170 #5555aa
 85  85 255 #5555ff
170  85   0 #aa5500
170  85  85 #aa5555
170  85 170 #aa55aa
170  85 255 #aa55ff
255  85   0 #ff5500
255  85  85 #ff5555
255  85 170 #ff55aa
255  85 255 #ff55ff
  0 170   0 #00aa00
  0 170  85 #00aa55
  0 170 170 #00aaaa
  0 170 255 #00aaff
 85 170   0 #55aa00
 85 170  85 #55aa55
 85 170 170 #55aaaa
 85 170 255 #55aaff
170 170   0 #aaaa00
170 170  85 #aaaa55
170 170 170 #aaaaaa
170 170 255 #aaaaff
255 170   0 #ffaa00
255 170  85 #ffaa55
255 170 170 #ffaaaa
255 170 255 #ffaaff
  0 255   0 #00ff00
  0 255  85 #00ff55
  0 255 170 #00ffaa
  0 255 255 #00ffff
 85 255   0 #55ff00
 85 255  85 #55ff55
 85 255 170 #55ffaa
 85 255 255 #55ffff
170 255   0 #aaff00
170 255  85 #aaff55
170 255 170 #aaffaa
170 255 255 #aaffff
255 255   0 #ffff00
255 255  85 #ffff55
255 255 170 #ffffaa
255 255 255 #ffffff

Comments (1)

  1. Log in to comment