easitwo 26.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- easitwo-26.0/LICENSE +21 -0
- easitwo-26.0/PKG-INFO +75 -0
- easitwo-26.0/README.md +59 -0
- easitwo-26.0/pyproject.toml +18 -0
- easitwo-26.0/setup.cfg +4 -0
- easitwo-26.0/src/easitwo/__init__.py +11 -0
- easitwo-26.0/src/easitwo/color.py +265 -0
- easitwo-26.0/src/easitwo/display.py +541 -0
- easitwo-26.0/src/easitwo/entity.py +824 -0
- easitwo-26.0/src/easitwo/event.py +498 -0
- easitwo-26.0/src/easitwo/graphic.py +1204 -0
- easitwo-26.0/src/easitwo/image.py +785 -0
- easitwo-26.0/src/easitwo/media.py +241 -0
- easitwo-26.0/src/easitwo.egg-info/PKG-INFO +75 -0
- easitwo-26.0/src/easitwo.egg-info/SOURCES.txt +16 -0
- easitwo-26.0/src/easitwo.egg-info/dependency_links.txt +1 -0
- easitwo-26.0/src/easitwo.egg-info/requires.txt +4 -0
- easitwo-26.0/src/easitwo.egg-info/top_level.txt +1 -0
easitwo-26.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Altaria
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
easitwo-26.0/PKG-INFO
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: easitwo
|
|
3
|
+
Version: 26.0
|
|
4
|
+
Summary: Used to easily create a 2D game
|
|
5
|
+
Author-email: Altaria <1602422136@qq.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Keywords: easitwo,easy,2d,game
|
|
8
|
+
Requires-Python: >=3.8
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: pygame
|
|
12
|
+
Requires-Dist: Pillow
|
|
13
|
+
Requires-Dist: winaccent
|
|
14
|
+
Requires-Dist: pyvidplayer2
|
|
15
|
+
Dynamic: license-file
|
|
16
|
+
|
|
17
|
+
# easitwo
|
|
18
|
+
|
|
19
|
+
> **26.0 — Omiga Edition**
|
|
20
|
+
|
|
21
|
+
A simple framework for easily creating 2D games with Python.
|
|
22
|
+
|
|
23
|
+
## Install
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pip install easitwo
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Quick Start
|
|
30
|
+
```python
|
|
31
|
+
from easitwo import *
|
|
32
|
+
|
|
33
|
+
window = display.Window(width=960, height=540, caption="Hello World")
|
|
34
|
+
scene = display.Scene(window)
|
|
35
|
+
scene.switch()
|
|
36
|
+
|
|
37
|
+
img = image.Animation("your_image_path.gif")
|
|
38
|
+
sprite = entity.Entity(scene, img, x=100, y=100)
|
|
39
|
+
|
|
40
|
+
monitor = event.Monitor(window)
|
|
41
|
+
monitor.on_each_frame(sprite.next_texture)
|
|
42
|
+
|
|
43
|
+
window.run()
|
|
44
|
+
```
|
|
45
|
+
## Function
|
|
46
|
+
| Module Names | Functions |
|
|
47
|
+
|--------------|----------------------------|
|
|
48
|
+
| display | Window and Scene Management|
|
|
49
|
+
| entity | Entity and Entity Group |
|
|
50
|
+
| graphic | Line segments, triangles, rectangles, circles, ellipses, polygons, Bézier curves, text |
|
|
51
|
+
| image | Static images, GIFs, frame animations, support scaling, rotation, filters, and color adjustments |
|
|
52
|
+
| event | Keyboard, mouse, scroll wheel events, timers, broadcasts |
|
|
53
|
+
| media | Sound and music |
|
|
54
|
+
| color | RGB / Hex colors, with lots of built-in named colors |
|
|
55
|
+
|
|
56
|
+
## System Requirements
|
|
57
|
+
Python 3.11 or higher\
|
|
58
|
+
Windows / macOS / Linux
|
|
59
|
+
|
|
60
|
+
## Dependency
|
|
61
|
+
pygame\
|
|
62
|
+
Pillow\
|
|
63
|
+
pyvidplayer2\
|
|
64
|
+
winaccent(Only Windows)
|
|
65
|
+
|
|
66
|
+
## License
|
|
67
|
+
MIT
|
|
68
|
+
|
|
69
|
+
## Dedication
|
|
70
|
+
|
|
71
|
+
> To everyone who loves making games, but has ever felt frustrated by complicated engines and endless boilerplate.
|
|
72
|
+
|
|
73
|
+
This release is the **"26.0 omiga"** edition — a tribute to **omiga**, a small library I wrote years ago.
|
|
74
|
+
|
|
75
|
+
I hope easitwo can be of some help to you. If you run into any bugs, please don't hesitate to let me know. Your feedback means a lot to me.
|
easitwo-26.0/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# easitwo
|
|
2
|
+
|
|
3
|
+
> **26.0 — Omiga Edition**
|
|
4
|
+
|
|
5
|
+
A simple framework for easily creating 2D games with Python.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install easitwo
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Quick Start
|
|
14
|
+
```python
|
|
15
|
+
from easitwo import *
|
|
16
|
+
|
|
17
|
+
window = display.Window(width=960, height=540, caption="Hello World")
|
|
18
|
+
scene = display.Scene(window)
|
|
19
|
+
scene.switch()
|
|
20
|
+
|
|
21
|
+
img = image.Animation("your_image_path.gif")
|
|
22
|
+
sprite = entity.Entity(scene, img, x=100, y=100)
|
|
23
|
+
|
|
24
|
+
monitor = event.Monitor(window)
|
|
25
|
+
monitor.on_each_frame(sprite.next_texture)
|
|
26
|
+
|
|
27
|
+
window.run()
|
|
28
|
+
```
|
|
29
|
+
## Function
|
|
30
|
+
| Module Names | Functions |
|
|
31
|
+
|--------------|----------------------------|
|
|
32
|
+
| display | Window and Scene Management|
|
|
33
|
+
| entity | Entity and Entity Group |
|
|
34
|
+
| graphic | Line segments, triangles, rectangles, circles, ellipses, polygons, Bézier curves, text |
|
|
35
|
+
| image | Static images, GIFs, frame animations, support scaling, rotation, filters, and color adjustments |
|
|
36
|
+
| event | Keyboard, mouse, scroll wheel events, timers, broadcasts |
|
|
37
|
+
| media | Sound and music |
|
|
38
|
+
| color | RGB / Hex colors, with lots of built-in named colors |
|
|
39
|
+
|
|
40
|
+
## System Requirements
|
|
41
|
+
Python 3.11 or higher\
|
|
42
|
+
Windows / macOS / Linux
|
|
43
|
+
|
|
44
|
+
## Dependency
|
|
45
|
+
pygame\
|
|
46
|
+
Pillow\
|
|
47
|
+
pyvidplayer2\
|
|
48
|
+
winaccent(Only Windows)
|
|
49
|
+
|
|
50
|
+
## License
|
|
51
|
+
MIT
|
|
52
|
+
|
|
53
|
+
## Dedication
|
|
54
|
+
|
|
55
|
+
> To everyone who loves making games, but has ever felt frustrated by complicated engines and endless boilerplate.
|
|
56
|
+
|
|
57
|
+
This release is the **"26.0 omiga"** edition — a tribute to **omiga**, a small library I wrote years ago.
|
|
58
|
+
|
|
59
|
+
I hope easitwo can be of some help to you. If you run into any bugs, please don't hesitate to let me know. Your feedback means a lot to me.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "easitwo"
|
|
7
|
+
version = "26.0"
|
|
8
|
+
description = "Used to easily create a 2D game"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
authors = [{name = "Altaria", email = "1602422136@qq.com"}]
|
|
13
|
+
requires-python = ">=3.8"
|
|
14
|
+
dependencies = ["pygame", "Pillow", "winaccent", "pyvidplayer2"]
|
|
15
|
+
keywords = ["easitwo", "easy", "2d", "game"]
|
|
16
|
+
|
|
17
|
+
[tool.setuptools.packages.find]
|
|
18
|
+
where = ["src"]
|
easitwo-26.0/setup.cfg
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
from typing import Self
|
|
2
|
+
|
|
3
|
+
class Palette(object):
|
|
4
|
+
"""
|
|
5
|
+
Palette
|
|
6
|
+
---
|
|
7
|
+
Used to fetch an RGB or hexadecimal color.
|
|
8
|
+
|
|
9
|
+
Example:
|
|
10
|
+
```
|
|
11
|
+
from easitwo import *
|
|
12
|
+
# (1)
|
|
13
|
+
print(color.Palette(255, 255, 255)) # -> [White] <easitwo.color.Palette object at 0x000001C9248FF5F0>
|
|
14
|
+
# (2)
|
|
15
|
+
print(color.Palette("#FFFFFF")) # -> [White] <easitwo.color.Palette object at 0x00000252E87A75F0>
|
|
16
|
+
...
|
|
17
|
+
```
|
|
18
|
+
"""
|
|
19
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
20
|
+
# 当传入三个数字时,默认传入255rgb值
|
|
21
|
+
if (len(args) == 3 and (isinstance(args[0], int) and isinstance(args[1], int) and isinstance(args[2], int))):
|
|
22
|
+
self._r = args[0]
|
|
23
|
+
self._g = args[1]
|
|
24
|
+
self._b = args[2]
|
|
25
|
+
# 当传入字符串时,默认传入16进制rgb值
|
|
26
|
+
if (len(args) == 1 and isinstance(args[0], str)):
|
|
27
|
+
self._rgb16 = args[0] # 保存为临时变量
|
|
28
|
+
self._hex_str = self._rgb16.lstrip("#")
|
|
29
|
+
|
|
30
|
+
self._r = int(self._hex_str[0: 2], 16)
|
|
31
|
+
self._g = int(self._hex_str[2: 4], 16)
|
|
32
|
+
self._b = int(self._hex_str[4: 6], 16) # 16进制 -> 10进制
|
|
33
|
+
|
|
34
|
+
return None
|
|
35
|
+
|
|
36
|
+
def rgb(self) -> tuple[int]:
|
|
37
|
+
"""
|
|
38
|
+
Palette.rgb
|
|
39
|
+
---
|
|
40
|
+
Return the RGB values of this color as an integer tuple.
|
|
41
|
+
|
|
42
|
+
Example:
|
|
43
|
+
```
|
|
44
|
+
...
|
|
45
|
+
white = color.Palette("#FFFFFF")
|
|
46
|
+
print(white.rgb()) # -> (255, 255, 255)
|
|
47
|
+
...
|
|
48
|
+
```
|
|
49
|
+
"""
|
|
50
|
+
return (self._r, self._g, self._b) #返回rgb数组
|
|
51
|
+
|
|
52
|
+
def hex(self) -> str:
|
|
53
|
+
"""
|
|
54
|
+
Palette.hex
|
|
55
|
+
---
|
|
56
|
+
Return the hexadecimal representation of this color as a string.
|
|
57
|
+
|
|
58
|
+
Example:
|
|
59
|
+
```
|
|
60
|
+
...
|
|
61
|
+
white = color.Palette(255, 255, 255)
|
|
62
|
+
print(white.hex()) # -> "#FFFFFF"
|
|
63
|
+
...
|
|
64
|
+
```
|
|
65
|
+
"""
|
|
66
|
+
self._hex_str = f"#{self._r:02X}{self._g:02X}{self._b:02X}"
|
|
67
|
+
return self._hex_str # 返回调整后的16进制表示法
|
|
68
|
+
|
|
69
|
+
def norm(self) -> tuple[float]:
|
|
70
|
+
"""
|
|
71
|
+
Palette.norm
|
|
72
|
+
---
|
|
73
|
+
Return the normal representation of the color as a tuple of floats.
|
|
74
|
+
|
|
75
|
+
Example:
|
|
76
|
+
```
|
|
77
|
+
...
|
|
78
|
+
white = color.Palette(255, 255, 255)
|
|
79
|
+
print(white.norm()) # -> (1.0, 1.0, 1.0)
|
|
80
|
+
...
|
|
81
|
+
```
|
|
82
|
+
"""
|
|
83
|
+
# 返回normal颜色值
|
|
84
|
+
return (self._r / 255, self._g / 255, self._b / 255)
|
|
85
|
+
|
|
86
|
+
def inverse_color(self) -> Self:
|
|
87
|
+
"""
|
|
88
|
+
Palette.inverse_color
|
|
89
|
+
---
|
|
90
|
+
Return the opposite color of this color.
|
|
91
|
+
|
|
92
|
+
Example:
|
|
93
|
+
```
|
|
94
|
+
...
|
|
95
|
+
white = color.Palette(255, 255, 255)
|
|
96
|
+
print(white.inverse_color().rgb()) # -> (0, 0, 0)
|
|
97
|
+
...
|
|
98
|
+
```
|
|
99
|
+
"""
|
|
100
|
+
self._inverse_r = 255 - self._r
|
|
101
|
+
self._inverse_g = 255 - self._g
|
|
102
|
+
self._inverse_b = 255 - self._b # 获取三种颜色的反色
|
|
103
|
+
|
|
104
|
+
self._new_palette = Palette(self._inverse_r, self._inverse_g, self._inverse_b) # 设置返回值
|
|
105
|
+
return self._new_palette
|
|
106
|
+
|
|
107
|
+
def scale(self, k: int = 1) -> Self:
|
|
108
|
+
"""
|
|
109
|
+
Palette.scale
|
|
110
|
+
---
|
|
111
|
+
Scale the RGB values of the color by k times and return a new Palette object.
|
|
112
|
+
|
|
113
|
+
Example:
|
|
114
|
+
```
|
|
115
|
+
...
|
|
116
|
+
white = color.Palette(255, 255, 255)
|
|
117
|
+
gray = white.scale(0.8)
|
|
118
|
+
print(gray.rgb()) # -> (204, 204, 204)
|
|
119
|
+
...
|
|
120
|
+
```
|
|
121
|
+
"""
|
|
122
|
+
_new_r = int(self._r * k) if (int(self._r * k) < 255) else 255
|
|
123
|
+
_new_g = int(self._g * k) if (int(self._g * k) < 255) else 255
|
|
124
|
+
_new_b = int(self._b * k) if (int(self._b * k) < 255) else 255 # 等比例缩放三种原色
|
|
125
|
+
|
|
126
|
+
_new_palette = Palette(_new_r, _new_g, _new_b)
|
|
127
|
+
return _new_palette
|
|
128
|
+
|
|
129
|
+
White: Palette = Palette(255, 255, 255) # 白色
|
|
130
|
+
Black: Palette = Palette(0, 0, 0) # 黑色
|
|
131
|
+
Red: Palette = Palette(255, 0, 0) # 红色
|
|
132
|
+
Green: Palette = Palette(0, 255, 0) # 绿色
|
|
133
|
+
Blue: Palette = Palette(0, 0, 255) # 蓝色
|
|
134
|
+
Yellow: Palette = Palette(255, 255, 0) # 黄色
|
|
135
|
+
Cyan: Palette = Palette(0, 255, 255) # 青色
|
|
136
|
+
Magenta: Palette = Palette(255, 0, 255) # 品红
|
|
137
|
+
|
|
138
|
+
Gray: Palette = Palette(128, 128, 128) # 灰色
|
|
139
|
+
LightGray: Palette = Palette(211, 211, 211) # 浅灰色
|
|
140
|
+
DarkGray: Palette = Palette(64, 64, 64) # 深灰色
|
|
141
|
+
DimGray: Palette = Palette(105, 105, 105) # 暗灰色
|
|
142
|
+
Silver: Palette = Palette(192, 192, 192) # 银色
|
|
143
|
+
|
|
144
|
+
DarkRed: Palette = Palette(139, 0, 0) # 暗红色
|
|
145
|
+
IndianRed: Palette = Palette(205, 92, 92) # 印度红
|
|
146
|
+
LightCoral: Palette = Palette(240, 128, 128) # 淡珊瑚色
|
|
147
|
+
Salmon: Palette = Palette(250, 128, 114) # 鲑鱼色
|
|
148
|
+
DarkSalmon: Palette = Palette(233, 150, 122) # 暗鲑鱼色
|
|
149
|
+
LightSalmon: Palette = Palette(255, 160, 122) # 亮鲑鱼色
|
|
150
|
+
Crimson: Palette = Palette(220, 20, 60) # 深红色
|
|
151
|
+
FireBrick: Palette = Palette(178, 34, 34) # 耐火砖色
|
|
152
|
+
|
|
153
|
+
Pink: Palette = Palette(255, 192, 203) # 粉色
|
|
154
|
+
LightPink: Palette = Palette(255, 182, 193) # 浅粉色
|
|
155
|
+
HotPink: Palette = Palette(255, 105, 180) # 亮粉红
|
|
156
|
+
DeepPink: Palette = Palette(255, 20, 147) # 深粉色
|
|
157
|
+
MediumVioletRed: Palette = Palette(199, 21, 133) # 中紫罗兰红
|
|
158
|
+
PaleVioletRed: Palette = Palette(219, 112, 147) # 苍紫罗兰红
|
|
159
|
+
|
|
160
|
+
Orange: Palette = Palette(255, 165, 0) # 橙色
|
|
161
|
+
DarkOrange: Palette = Palette(255, 140, 0) # 暗橙色
|
|
162
|
+
Coral: Palette = Palette(255, 127, 80) # 珊瑚色
|
|
163
|
+
Tomato: Palette = Palette(255, 99, 71) # 番茄色
|
|
164
|
+
OrangeRed: Palette = Palette(255, 69, 0) # 橙红色
|
|
165
|
+
Gold: Palette = Palette(255, 215, 0) # 金色
|
|
166
|
+
|
|
167
|
+
LightYellow: Palette = Palette(255, 255, 224) # 浅黄色
|
|
168
|
+
LemonChiffon: Palette = Palette(255, 250, 205) # 柠檬绸色
|
|
169
|
+
LightGoldenrodYellow: Palette = Palette(250, 250, 210) # 浅金菊黄
|
|
170
|
+
PapayaWhip: Palette = Palette(255, 239, 213) # 木瓜色
|
|
171
|
+
Moccasin: Palette = Palette(255, 228, 181) # 鹿皮色
|
|
172
|
+
PeachPuff: Palette = Palette(255, 218, 185) # 桃色
|
|
173
|
+
PaleGoldenrod: Palette = Palette(238, 232, 170) # 苍麒麟色
|
|
174
|
+
Khaki: Palette = Palette(240, 230, 140) # 卡其色
|
|
175
|
+
DarkKhaki: Palette = Palette(189, 183, 107) # 暗卡其色
|
|
176
|
+
|
|
177
|
+
Brown: Palette = Palette(165, 42, 42) # 棕色
|
|
178
|
+
SaddleBrown: Palette = Palette(139, 69, 19) # 鞍棕色
|
|
179
|
+
Sienna: Palette = Palette(160, 82, 45) # 赭色
|
|
180
|
+
Chocolate: Palette = Palette(210, 105, 30) # 巧克力色
|
|
181
|
+
Peru: Palette = Palette(205, 133, 63) # 秘鲁色
|
|
182
|
+
SandyBrown: Palette = Palette(244, 164, 96) # 沙棕色
|
|
183
|
+
BurlyWood: Palette = Palette(222, 184, 135) # 硬木色
|
|
184
|
+
Tan: Palette = Palette(210, 180, 140) # 棕褐色
|
|
185
|
+
RosyBrown: Palette = Palette(188, 143, 143) # 玫瑰棕色
|
|
186
|
+
|
|
187
|
+
DarkGreen: Palette = Palette(0, 100, 0) # 暗绿色
|
|
188
|
+
ForestGreen: Palette = Palette(34, 139, 34) # 森林绿
|
|
189
|
+
LimeGreen: Palette = Palette(50, 205, 50) # 酸橙绿
|
|
190
|
+
LightGreen: Palette = Palette(144, 238, 144) # 浅绿色
|
|
191
|
+
PaleGreen: Palette = Palette(152, 251, 152) # 苍绿色
|
|
192
|
+
SpringGreen: Palette = Palette(0, 255, 127) # 春绿色
|
|
193
|
+
MediumSpringGreen: Palette = Palette(0, 250, 154) # 中春绿色
|
|
194
|
+
LawnGreen: Palette = Palette(124, 252, 0) # 草坪绿
|
|
195
|
+
Chartreuse: Palette = Palette(127, 255, 0) # 黄绿色
|
|
196
|
+
GreenYellow: Palette = Palette(173, 255, 47) # 绿黄色
|
|
197
|
+
OliveDrab: Palette = Palette(107, 142, 35) # 橄榄褐
|
|
198
|
+
DarkOliveGreen: Palette = Palette(85, 107, 47) # 暗橄榄绿
|
|
199
|
+
Olive: Palette = Palette(128, 128, 0) # 橄榄色
|
|
200
|
+
YellowGreen: Palette = Palette(154, 205, 50) # 黄绿色
|
|
201
|
+
SeaGreen: Palette = Palette(46, 139, 87) # 海绿色
|
|
202
|
+
MediumSeaGreen: Palette = Palette(60, 179, 113) # 中海绿色
|
|
203
|
+
LightSeaGreen: Palette = Palette(32, 178, 170) # 浅海绿色
|
|
204
|
+
DarkSeaGreen: Palette = Palette(143, 188, 143) # 暗海绿色
|
|
205
|
+
Teal: Palette = Palette(0, 128, 128) # 蓝绿色
|
|
206
|
+
|
|
207
|
+
DarkBlue: Palette = Palette(0, 0, 139) # 暗蓝色
|
|
208
|
+
MediumBlue: Palette = Palette(0, 0, 205) # 中蓝色
|
|
209
|
+
Navy: Palette = Palette(0, 0, 128) # 海军蓝
|
|
210
|
+
RoyalBlue: Palette = Palette(65, 105, 225) # 皇家蓝
|
|
211
|
+
LightBlue: Palette = Palette(173, 216, 230) # 浅蓝色
|
|
212
|
+
LightSteelBlue: Palette = Palette(176, 196, 222) # 亮钢蓝
|
|
213
|
+
DodgerBlue: Palette = Palette(30, 144, 255) # 道奇蓝
|
|
214
|
+
CornflowerBlue: Palette = Palette(100, 149, 237) # 矢车菊蓝
|
|
215
|
+
SkyBlue: Palette = Palette(135, 206, 235) # 天蓝色
|
|
216
|
+
DeepSkyBlue: Palette = Palette(0, 191, 255) # 深天蓝色
|
|
217
|
+
MidnightBlue: Palette = Palette(25, 25, 112) # 午夜蓝
|
|
218
|
+
SteelBlue: Palette = Palette(70, 130, 180) # 钢蓝色
|
|
219
|
+
PowderBlue: Palette = Palette(176, 224, 230) # 粉蓝色
|
|
220
|
+
CadetBlue: Palette = Palette(95, 158, 160) # 军校蓝
|
|
221
|
+
AliceBlue: Palette = Palette(240, 248, 255) # 爱丽丝蓝
|
|
222
|
+
|
|
223
|
+
Purple: Palette = Palette(128, 0, 128) # 紫色
|
|
224
|
+
MediumPurple: Palette = Palette(147, 112, 219) # 中紫色
|
|
225
|
+
Indigo: Palette = Palette(75, 0, 130) # 靛蓝色
|
|
226
|
+
Violet: Palette = Palette(238, 130, 238) # 紫罗兰色
|
|
227
|
+
DarkViolet: Palette = Palette(148, 0, 211) # 暗紫罗兰
|
|
228
|
+
BlueViolet: Palette = Palette(138, 43, 226) # 蓝紫色
|
|
229
|
+
Lavender: Palette = Palette(230, 230, 250) # 薰衣草色
|
|
230
|
+
LavenderBlush: Palette = Palette(255, 240, 245) # 薰衣草腮红
|
|
231
|
+
Thistle: Palette = Palette(216, 191, 216) # 蓟色
|
|
232
|
+
Plum: Palette = Palette(221, 160, 221) # 李子色
|
|
233
|
+
Orchid: Palette = Palette(218, 112, 214) # 兰花色
|
|
234
|
+
MediumOrchid: Palette = Palette(186, 85, 211) # 中兰花色
|
|
235
|
+
DarkOrchid: Palette = Palette(153, 50, 204) # 暗兰花色
|
|
236
|
+
Fuchsia: Palette = Palette(255, 0, 255) # 紫红色
|
|
237
|
+
|
|
238
|
+
Ivory: Palette = Palette(255, 255, 240) # 象牙色
|
|
239
|
+
Beige: Palette = Palette(245, 245, 220) # 米色
|
|
240
|
+
Wheat: Palette = Palette(245, 222, 179) # 小麦色
|
|
241
|
+
Bisque: Palette = Palette(255, 228, 196) # 饼干色
|
|
242
|
+
NavajoWhite: Palette = Palette(255, 222, 173) # 纳瓦霍白
|
|
243
|
+
BlanchedAlmond: Palette = Palette(255, 235, 205) # 白杏仁色
|
|
244
|
+
AntiqueWhite: Palette = Palette(250, 235, 215) # 古白色
|
|
245
|
+
Linen: Palette = Palette(250, 240, 230) # 亚麻色
|
|
246
|
+
FloralWhite: Palette = Palette(255, 250, 240) # 花白色
|
|
247
|
+
OldLace: Palette = Palette(253, 245, 230) # 旧蕾丝色
|
|
248
|
+
Cornsilk: Palette = Palette(255, 248, 220) # 玉米丝色
|
|
249
|
+
MintCream: Palette = Palette(245, 255, 250) # 薄荷奶油色
|
|
250
|
+
HoneyDew: Palette = Palette(240, 255, 240) # 蜜瓜色
|
|
251
|
+
SeaShell: Palette = Palette(255, 245, 238) # 贝壳色
|
|
252
|
+
Snow: Palette = Palette(255, 250, 250) # 雪白色
|
|
253
|
+
GhostWhite: Palette = Palette(248, 248, 255) # 幽灵白
|
|
254
|
+
WhiteSmoke: Palette = Palette(245, 245, 245) # 白烟色
|
|
255
|
+
|
|
256
|
+
Aqua: Palette = Palette(0, 255, 255) # 水蓝色
|
|
257
|
+
Aquamarine: Palette = Palette(127, 255, 212) # 碧绿色
|
|
258
|
+
MediumAquamarine: Palette = Palette(102, 205, 170) # 中碧绿色
|
|
259
|
+
Turquoise: Palette = Palette(64, 224, 208) # 绿松石色
|
|
260
|
+
DarkTurquoise: Palette = Palette(0, 206, 209) # 暗绿松石
|
|
261
|
+
MediumTurquoise: Palette = Palette(72, 209, 204) # 中绿松石
|
|
262
|
+
PaleTurquoise: Palette = Palette(175, 238, 238) # 苍绿松石
|
|
263
|
+
|
|
264
|
+
Gainsboro: Palette = Palette(220, 220, 220) # 庚斯博罗灰
|
|
265
|
+
Azure: Palette = Palette(240, 255, 255) # 天蓝色
|