diff options
Diffstat (limited to 'axis.hs')
-rw-r--r-- | axis.hs | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -34,8 +34,8 @@ netwireIsCool = | |||
34 | 34 | ||
35 | smartShowPitch p = showPitch p -- TODO: use flat for Eb, Bb; use unicode flat/sharp chars | 35 | smartShowPitch p = showPitch p -- TODO: use flat for Eb, Bb; use unicode flat/sharp chars |
36 | 36 | ||
37 | _USE_HEXAGONS = False | 37 | _USE_HEXAGONS = True |
38 | _COLORIZE_BY_CHANNEL = False | 38 | _COLORIZE_BY_CHANNEL = True |
39 | 39 | ||
40 | _AXIS_ROWS = 7 + 4 | 40 | _AXIS_ROWS = 7 + 4 |
41 | _AXIS_UNIQUE_COLS = 7 | 41 | _AXIS_UNIQUE_COLS = 7 |
@@ -70,7 +70,22 @@ http://en.wikipedia.org/wiki/Enhanced_Graphics_Adapter | |||
70 | 15 – bright white (#FFFFFF) 111111 63 | 70 | 15 – bright white (#FFFFFF) 111111 63 |
71 | -} | 71 | -} |
72 | 72 | ||
73 | _CGA = [(SDL.Color 0x00 0x00 0x00), (SDL.Color 0x00 0x00 0xAA), (SDL.Color 0x00 0xAA 0x00), (SDL.Color 0x00 0xAA 0xAA), (SDL.Color 0xAA 0x00 0x00), (SDL.Color 0xAA 0x00 0xAA), (SDL.Color 0xAA 0x55 0x00), (SDL.Color 0xAA 0xAA 0xAA), (SDL.Color 0x55 0x55 0x55), (SDL.Color 0x55 0x55 0xFF), (SDL.Color 0x55 0xFF 0x55), (SDL.Color 0x55 0xFF 0xFF), (SDL.Color 0xFF 0x55 0x55), (SDL.Color 0xFF 0x55 0xFF), (SDL.Color 0xFF 0xFF 0x55), (SDL.Color 0xFF 0xFF 0xFF)] | 73 | _CGA = [--(SDL.Color 0x00 0x00 0x00), --black |
74 | (SDL.Color 0x00 0x00 0xAA), --blue | ||
75 | (SDL.Color 0x00 0xAA 0x00), --green | ||
76 | (SDL.Color 0x00 0xAA 0xAA), --cyan | ||
77 | (SDL.Color 0xAA 0x00 0x00), --red | ||
78 | (SDL.Color 0xAA 0x00 0xAA), --magenta | ||
79 | (SDL.Color 0xAA 0x55 0x00), --brown | ||
80 | (SDL.Color 0xAA 0xAA 0xAA), --white / light gray | ||
81 | (SDL.Color 0x55 0x55 0x55), --dark gray / bright black | ||
82 | (SDL.Color 0x55 0x55 0xFF), --bright blue | ||
83 | (SDL.Color 0x55 0xFF 0x55), --bright green | ||
84 | (SDL.Color 0x55 0xFF 0xFF), --bright cyan | ||
85 | (SDL.Color 0xFF 0x55 0x55), --bright red | ||
86 | (SDL.Color 0xFF 0x55 0xFF), --bright magenta | ||
87 | (SDL.Color 0xFF 0xFF 0x55), --bright yellow | ||
88 | (SDL.Color 0xFF 0xFF 0xFF)] --bright white | ||
74 | 89 | ||
75 | _drawHexircle f v x y s c = | 90 | _drawHexircle f v x y s c = |
76 | if _USE_HEXAGONS | 91 | if _USE_HEXAGONS |