@@ -254,19 +254,24 @@ def fill_arc(x_start:float, y_start:float, width:float, height:float, start_angl
254254
255255###########################################################################################
256256
257- def draw_poly (x_list :list , y_list :list ):
257+ def draw_poly (x_list :list [ float ] , y_list :list [ float ] ):
258258 """
259259 Draws a polygon using the specified x-list,y-list values.
260-
261-
262- Category: TI Draw / Shape
263-
264-
265- Returns an array / list: [x_list, y_list]
260+
261+ Args:
262+ x_list (list): The list of values with the x coordinates.
263+ y_list (list): The list of values with the y coordinates.
264+
265+ Returns:
266+ list: a list containing the following data: [x_list, y_list]
266267 """
268+ if cerr .type_error (list , x_list ) == False : log ("Argument 'x_list' has to be type list!" , "ERROR" , "TI Draw" , "Draw Polygon" )
269+ if cerr .type_error (list , y_list ) == False : log ("Argument 'y_list' has to be type list!" , "ERROR" , "TI Draw" , "Draw Polygon" )
270+
267271 err .type_error (list , "list" , x_list )
268272 err .type_error (list , "list" , y_list )
269273
274+ log ("Drawing a polygon from the given x and y list" , "INFO" , "TI Draw" , "Draw Polygon" )
270275 print ("Drawing Polygon from x-list and y-list" )
271276 return [x_list , y_list ]
272277
0 commit comments