Skip to content

Commit 4656155

Browse files
committed
Issue #537 and #546 fixes.
1 parent 70af602 commit 4656155

File tree

8 files changed

+849
-804
lines changed

8 files changed

+849
-804
lines changed

arcade/__init__.py

Lines changed: 216 additions & 191 deletions
Large diffs are not rendered by default.

arcade/buffered_draw_commands.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from arcade import Point, PointList
2323
from arcade import get_four_byte_color
2424
from arcade import get_projection
25-
from arcade import _get_points_for_thick_line
25+
from arcade import get_points_for_thick_line
2626
from arcade import shader
2727

2828

@@ -95,7 +95,7 @@ def create_line(start_x: float, start_y: float, end_x: float, end_y: float,
9595
9696
"""
9797

98-
points = _get_points_for_thick_line(start_x, start_y, end_x, end_y, line_width)
98+
points = get_points_for_thick_line(start_x, start_y, end_x, end_y, line_width)
9999
color_list = [color, color, color, color]
100100
triangle_point_list = points[1], points[0], points[2], points[3]
101101
shape = create_triangles_filled_with_colors(triangle_point_list, color_list)
@@ -210,7 +210,7 @@ def create_line_strip(point_list: PointList,
210210
end_y = point_list[i][1]
211211
color1 = color
212212
color2 = color
213-
points = _get_points_for_thick_line(start_x, start_y, end_x, end_y, line_width)
213+
points = get_points_for_thick_line(start_x, start_y, end_x, end_y, line_width)
214214
new_color_list += color1, color2, color1, color2
215215
triangle_point_list += points[1], points[0], points[2], points[3]
216216

@@ -268,7 +268,7 @@ def create_lines_with_colors(point_list: PointList,
268268
end_y = point_list[i][1]
269269
color1 = color_list[i-1]
270270
color2 = color_list[i]
271-
points = _get_points_for_thick_line(start_x, start_y, end_x, end_y, line_width)
271+
points = get_points_for_thick_line(start_x, start_y, end_x, end_y, line_width)
272272
new_color_list += color1, color1, color2, color2
273273
triangle_point_list += points[1], points[0], points[2], points[3]
274274

0 commit comments

Comments
 (0)