Skip to content

Instantly share code, notes, and snippets.

@cbmeeks
Created January 8, 2016 18:42
Show Gist options
  • Save cbmeeks/5ca254aa7416c848fb98 to your computer and use it in GitHub Desktop.
Save cbmeeks/5ca254aa7416c848fb98 to your computer and use it in GitHub Desktop.
Propeller Color Values
{{
──────────────────────────────────────────────
Color Encoding Table
──────────────────────────────────────────────
C3 - C0 = Chroma Phase Shift
M = Modulation Enable
L2 - L0 = Luma Value
──────────────────────────────────────────────
Bit Encoding
Signal C3 C2 C1 C0 M L2 L1 L0
──────────────────────────────────────────────
Sync 0 0 0 0 0 0 0 0
─────────────── Grayscale Values ─────────────
Black 0 0 0 0 0 0 1 0
Dark Gray 0 0 0 0 0 0 1 1
Gray 0 0 0 0 0 1 0 0
Light Gray 0 0 0 0 0 1 0 1
Bright Gray 0 0 0 0 0 1 1 0
White 0 0 0 0 0 1 1 1
─────────────── Color Values ─────────────────
Blue 0.0 0 0 0 0 1 x x x
* 22.5 0 0 0 1 1 x x x
Purple 45.0 0 0 1 0 1 x x x
Magenta 67.5 0 0 1 1 1 x x x
* 90.0 0 1 0 0 1 x x x
Red 112.5 0 1 0 1 1 x x x
Orange 135.0 0 1 1 0 1 x x x
Brown 157.5 0 1 1 1 1 x x x
Yellow 180.0 1 0 0 0 1 x x x
Yel/Grn 202.5 1 0 0 1 1 x x x
Green 225.0 1 0 1 0 1 x x x
* 247.5 1 0 1 1 1 x x x
* 270.0 1 1 0 0 1 x x x
Cyan 292.5 1 1 0 1 1 x x x
* 315.0 1 1 1 0 1 x x x
* 337.5 1 1 1 1 1 x x x
──────────────────────────────────────────────
"Safe" luma values are 3 to 6 when using chroma
modulation because chroma modulation causes the
luma value to modulate +/-1.
Table taken from the Hydra Game Dev Manual by
André LaMothe.
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment