Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
savagesteel committed Feb 11, 2020
2 parents f595379 + 9af1229 commit 86449d6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions PC-Mac/PAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ Color palettes are sets of 256 colors used to render CEL/CL2 graphics.

`{PALETTE COLOR} * 256`

*The first half of the palette depends on the level palette ??*

## 3. `{PALETTE COLOR}` (3 bytes)

`{RED COMPONENT} {GREEN COMPONENT} {BLUE COMPONENT}`
Expand All @@ -30,16 +28,3 @@ To find the corresponding `{COLOR PALETTE OFFSET}`
in the color palette file, use the following formula:

`{COLOR PALETTE OFFSET} = 3 * {PALETTE INDEX}`

## TODO
- Add palette structure
- First half (128 bytes) background
- Second half (128 bytes) other elements
- Add hue and brightness
- Each half (128 bytes) has 8 hues
- Each hue (16 bytes) has 16 levels of brightness (1 byte each)
- Every square on the map has a light level which is combined with the orignal light level to get the final color (to be detailed).
- Is it different for the first 32 bytes of the second half?
- It seems that those 32 bytes are split into 4 hues (8 bytes) with 8 levels of brightness (1 byte each)
- It is different for level loading screens
- Add JASC palette format?

0 comments on commit 86449d6

Please sign in to comment.