# space_definitions.py | |
# 定義空間類型代碼與對應顏色(用於圖面視覺化) | |
# 空間代碼定義 | |
SPACE_CODES = { | |
1: "走道", # black | |
2: "住家", # yellow | |
3: "機電空間", # light blue | |
4: "管委會空間", # dark blue(公設空間) | |
5: "陽台", # orange | |
6: "梯廳", # green | |
7: "電梯", # light gray | |
8: "逃生梯", # red | |
9: "屋突" # purple | |
} | |
# 顏色對應(matplotlib 或 PIL 可用) | |
SPACE_COLORS = { | |
1: "#000000", # 走道 - 黑色 | |
2: "#FFFF00", # 住家 - 黃色 | |
3: "#ADD8E6", # 機電空間 - 淺藍色 | |
4: "#00008B", # 管委會空間 - 深藍色 | |
5: "#FFA500", # 陽台 - 橘色 | |
6: "#008000", # 梯廳 - 綠色 | |
7: "#D3D3D3", # 電梯 - 淺灰色 | |
8: "#FF0000", # 逃生梯 - 紅色 | |
9: "#800080", # 屋突 - 紫色 | |
} |