1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
from typing import Union, Tuple, List, Sequence
from typing_extensions import Protocol
from pygame.surface import Surface
from pygame.math import Vector2
from pygame.color import Color
from pygame.rect import Rect
_ColorValue = Union[
Color, Tuple[int, int, int], List[int], int, Tuple[int, int, int, int]
]
_Coordinate = Union[Tuple[float, float], List[float], Vector2]
_CanBeRect = Union[
Rect,
Tuple[int, int, int, int], List[int],
Tuple[_Coordinate, _Coordinate], List[_Coordinate]
]
class _HasRectAttribute(Protocol):
rect: _CanBeRect
_RectValue = Union[
_CanBeRect, _HasRectAttribute
]
def pixel(surface: Surface, x: int, y: int, color: _ColorValue) -> None: ...
def hline(surface: Surface, x1: int, x2: int, y: int, color: _ColorValue) -> None: ...
def vline(surface: Surface, x: int, y1: int, y2: int, color: _ColorValue) -> None: ...
def line(
surface: Surface, x1: int, y1: int, x2: int, y2: int, color: _ColorValue
) -> None: ...
def rectangle(surface: Surface, rect: _RectValue, color: _ColorValue) -> None: ...
def box(surface: Surface, rect: _RectValue, color: _ColorValue) -> None: ...
def circle(surface: Surface, x: int, y: int, r: int, color: _ColorValue) -> None: ...
def aacircle(surface: Surface, x: int, y: int, r: int, color: _ColorValue) -> None: ...
def filled_circle(
surface: Surface, x: int, y: int, r: int, color: _ColorValue
) -> None: ...
def ellipse(
surface: Surface, x: int, y: int, rx: int, ry: int, color: _ColorValue
) -> None: ...
def aaellipse(
surface: Surface, x: int, y: int, rx: int, ry: int, color: _ColorValue
) -> None: ...
def filled_ellipse(
surface: Surface, x: int, y: int, rx: int, ry: int, color: _ColorValue
) -> None: ...
def arc(
surface: Surface,
x: int,
y: int,
r: int,
start_angle: int,
atp_angle: int,
color: _ColorValue,
) -> None: ...
def pie(
surface: Surface,
x: int,
y: int,
r: int,
start_angle: int,
atp_angle: int,
color: _ColorValue,
) -> None: ...
def trigon(
surface: Surface,
x1: int,
y1: int,
x2: int,
y2: int,
x3: int,
y3: int,
color: _ColorValue,
) -> None: ...
def aatrigon(
surface: Surface,
x1: int,
y1: int,
x2: int,
y2: int,
x3: int,
y3: int,
color: _ColorValue,
) -> None: ...
def filled_trigon(
surface: Surface,
x1: int,
y1: int,
x2: int,
y2: int,
x3: int,
y3: int,
color: _ColorValue,
) -> None: ...
def polygon(
surface: Surface, points: Sequence[_Coordinate], color: _ColorValue
) -> None: ...
def aapolygon(
surface: Surface, points: Sequence[_Coordinate], color: _ColorValue
) -> None: ...
def filled_polygon(
surface: Surface, points: Sequence[_Coordinate], color: _ColorValue
) -> None: ...
def textured_polygon(
surface: Surface, points: Sequence[_Coordinate], texture: Surface, tx: int, ty: int
) -> None: ...
def bezier(
surface: Surface, points: Sequence[_Coordinate], steps: int, color: _ColorValue
) -> None: ...
|