Drawing - Utility#
- arcade.get_points_for_thick_line(start_x: float, start_y: float, end_x: float, end_y: float, line_width: float) Tuple[Tuple[float, float], Tuple[float, float], Tuple[float, float], Tuple[float, float]] [source]#
Function used internally for Arcade. OpenGL draws triangles only, so a thick line must be two triangles that make up a rectangle. This calculates and returns those points.