-
Notifications
You must be signed in to change notification settings - Fork 1
/
scene_drawing.py
130 lines (69 loc) · 1.51 KB
/
scene_drawing.py
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# import pyopengl
# global states
# =====================================
"""
def blend_mode(mode): # todo add
pass
def fill(r=0, g=0, b=0, a=1):
pass
def no_fill():
pass
def no_fill():
pass
def no_tint():
pass
def stroke(r, g, b, a=1):
pass
def stroke_weight(line_width):
pass
def use_shader(shader):
pass
# drawing
# =====================================
def background(r=0, g=0, b=0):
pass
def ellipse(x=0, y=0, w=0, h=0):
pass
def image(name, x=0, y=0, w=0, h=0[, from_x, from_y, from_w, from_h]
):
pass
def image_quad(name, x1, y1, x2, y2, x3, y3, x4, y4[, from_x1, from_y1, from_x2, from_y2, from_x3, from_y3, from_x4,
from_y4]
):
pass
def line(x1, y1, x2, y2):
pass
def rect(x=0, y=0, w=0, h=0):
pass
def text(txt, font_name='Helvetica', font_size=16.0, x=0.0, y=0.0, alignment=5):
pass
def tint(r=1, g=1, b=1, a=1):
pass
def triangle_strip(points[, tex_coords, image_name]
):
pass
# Coordinate Transformation
# =====================================
def translate(x, y):
pass
def pop_matrix():
pass
def push_matrix():
pass
def rotate(deg):
pass
def scale(x, y):
pass
# Loading Images
# =====================================
def load_image(image_name):
pass
def load_image_file(image_path):
pass
def load_pil_image(image):
pass
def render_text(txt, font_name='Helvetica', font_size=16.0):
pass
def unload_image(image_name):
pass
"""