mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 23:36:36 +00:00
ced45fa0d4
1) Add background colour toolbar beneath (foreground) colour toolbar. 2) Add colour flipping command w/ {accelerator,{menu,toolbar} item}. 3) Add {de,in}crease {brush,canvas} size accelerator. 4) Add {hide,show} assets window toolbar item. 5) Circle tool: draw outline with foreground colour. 6) Circle tool: honour transparency. 7) Fill tool: change comprehensive fill modifier key from <Shift> to <Ctrl>. 8) Fill tool: fill with {back,fore}ground colour given <[RL]MB> 9) Fix arrow keys cursor motion when scrolled down. 10 Instantly reflect {brush size,colour,tool} changes in canvas. 11) Object tool: honour transparency w/ non-external objects. 12) Object tool: update selection rectangle during <LMB> whilst dragging, set w/ release of <LMB>. 13) Rectangle tool: draw outline with foreground colour. 14) Rectangle tool: honour transparency. 15) Replace wx.ToolBar() w/ wx.lib.agw.aui.AuiToolBar() & custom wx.lib.agw.aui.AuiDefaultToolBarArt(). 16) Restore scrolling position after resizing canvas. .TODO: deleted. assets/audio/roar{arab8,spoke11}.wav: added. assets/text/hotkeys.txt: added to document hotkeys. assets/text/requirements.txt, requirements.txt: moved. assets/text/TODO: updated. {assets/tools,lib{canvas,gui,roar,rtl,tools}}/*.py: remove Vim fold markers. libroar/RoarCanvasCommandsFile.py:_importFile(): update wx.FileDialog() message. libroar/RoarCanvasCommandsOperators.py:canvasOperator(): update invert colours {caption,label}.
123 lines
2.9 KiB
Python
123 lines
2.9 KiB
Python
#!/usr/bin/env python3
|
|
#
|
|
# CanvasColours.py
|
|
# Copyright (c) 2018, 2019 Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
|
|
#
|
|
|
|
AnsiBgToMiRCARTColours = {
|
|
107: 0, # Bright White
|
|
40: 1, # Black
|
|
104: 2, # Blue
|
|
42: 3, # Green
|
|
101: 4, # Red
|
|
41: 5, # Light Red
|
|
45: 6, # Pink
|
|
43: 7, # Yellow
|
|
103: 8, # Light Yellow
|
|
102: 9, # Light Green
|
|
46: 10, # Cyan
|
|
106: 11, # Light Cyan
|
|
44: 12, # Light Blue
|
|
105: 13, # Light Pink
|
|
100: 14, # Grey
|
|
47: 15, # Light Grey
|
|
};
|
|
|
|
AnsiFgBoldToMiRCARTColours = {
|
|
97: 0, # Bright White
|
|
30: 14, # Grey
|
|
94: 12, # Light Blue
|
|
32: 9, # Light Green
|
|
91: 4, # Light Red
|
|
31: 4, # Light Red
|
|
35: 13, # Light Pink
|
|
33: 8, # Light Yellow
|
|
93: 8, # Light Yellow
|
|
92: 9, # Light Green
|
|
36: 11, # Light Cyan
|
|
96: 11, # Light Cyan
|
|
34: 12, # Light Blue
|
|
95: 13, # Light Pink
|
|
90: 14, # Grey
|
|
37: 0, # Bright White
|
|
};
|
|
|
|
AnsiFgToMiRCARTColours = {
|
|
97: 0, # Bright White
|
|
30: 1, # Black
|
|
94: 2, # Blue
|
|
32: 3, # Green
|
|
91: 4, # Red
|
|
31: 5, # Light Red
|
|
35: 6, # Pink
|
|
33: 7, # Yellow
|
|
93: 8, # Light Yellow
|
|
92: 9, # Light Green
|
|
36: 10, # Cyan
|
|
96: 11, # Light Cyan
|
|
34: 12, # Light Blue
|
|
95: 13, # Light Pink
|
|
90: 14, # Grey
|
|
37: 15, # Light Grey
|
|
};
|
|
|
|
ColourMapBold = [
|
|
[255, 255, 255], # Bright White
|
|
[85, 85, 85], # Black
|
|
[85, 85, 255], # Light Blue
|
|
[85, 255, 85], # Green
|
|
[255, 85, 85], # Red
|
|
[255, 85, 85], # Light Red
|
|
[255, 85, 255], # Pink
|
|
[255, 255, 85], # Yellow
|
|
[255, 255, 85], # Light Yellow
|
|
[85, 255, 85], # Light Green
|
|
[85, 255, 255], # Cyan
|
|
[85, 255, 255], # Light Cyan
|
|
[85, 85, 255], # Blue
|
|
[255, 85, 255], # Light Pink
|
|
[85, 85, 85], # Grey
|
|
[255, 255, 255], # Light Grey
|
|
]
|
|
|
|
ColourMapNormal = [
|
|
[255, 255, 255], # Bright White
|
|
[0, 0, 0], # Black
|
|
[0, 0, 187], # Light Blue
|
|
[0, 187, 0], # Green
|
|
[255, 85, 85], # Red
|
|
[187, 0, 0], # Light Red
|
|
[187, 0, 187], # Pink
|
|
[187, 187, 0], # Yellow
|
|
[255, 255, 85], # Light Yellow
|
|
[85, 255, 85], # Light Green
|
|
[0, 187, 187], # Cyan
|
|
[85, 255, 255], # Light Cyan
|
|
[85, 85, 255], # Blue
|
|
[255, 85, 255], # Light Pink
|
|
[85, 85, 85], # Grey
|
|
[187, 187, 187], # Light Grey
|
|
]
|
|
|
|
MiRCARTToAnsiColours = [
|
|
97, # Bright White
|
|
30, # Black
|
|
94, # Light Blue
|
|
32, # Green
|
|
91, # Red
|
|
31, # Light Red
|
|
35, # Pink
|
|
33, # Yellow
|
|
93, # Light Yellow
|
|
92, # Light Green
|
|
36, # Cyan
|
|
96, # Light Cyan
|
|
34, # Blue
|
|
95, # Light Pink
|
|
90, # Grey
|
|
37, # Light Grey
|
|
];
|
|
|
|
|
|
# vim:expandtab foldmethod=marker sw=4 ts=4 tw=120
|