You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Draws an arc starting at the specified x,y coordinate with the specified width, height and angles filled with the specified color (using set_color or black if not defined).
start_angle (float): The starting angle of the arc.
232
+
arc_angle (float): The arc angle.
233
+
234
+
Returns:
235
+
list: a list containing the following data: [x_start, y_start, width, height, start_angle, arc_angle]
231
236
"""
237
+
ifcerr.type_error(float, x_start) ==False: log("Argument 'x_start' has to be type float!", "ERROR", "TI Draw", "Filled Arc")
238
+
ifcerr.type_error(float, y_start) ==False: log("Argument 'y_start' has to be type float!", "ERROR", "TI Draw", "Filled Arc")
239
+
ifcerr.type_error(float, width) ==False: log("Argument 'width' has to be type float!", "ERROR", "TI Draw", "Filled Arc")
240
+
ifcerr.type_error(float, height) ==False: log("Argument 'height' has to be type float!", "ERROR", "TI Draw", "Filled Arc")
241
+
ifcerr.type_error(float, start_angle) ==False: log("Argument 'start_angle' has to be type float!", "ERROR", "TI Draw", "Filled Arc")
242
+
ifcerr.type_error(float, arc_angle) ==False: log("Argument 'arc_angle' has to be type float!", "ERROR", "TI Draw", "Filled Arc")
243
+
232
244
err.type_error(float, "float", x_start)
233
245
err.type_error(float, "float", y_start)
234
246
err.type_error(float, "float", width)
235
247
err.type_error(float, "float", height)
236
248
err.type_error(float, "float", start_angle)
237
249
err.type_error(float, "float", arc_angle)
238
-
250
+
251
+
log("Drawing a filled arc from starting point: ( "+str(x_start) +" | "+str(y_start) +" ) with start-angle '"+str(start_angle) +" degrees' and arc-angle '"+str(arc_angle) +" degrees' with a height of '"+str(height) +"' and a width of '"+str(width) +"'", "INFO", "TI Draw", "Filled Arc")
239
252
print("Drawing filled arc from starting point: ( "+str(x_start) +" | "+str(y_start) +" ) with start-angle '"+str(start_angle) +" degrees' and arc-angle '"+str(arc_angle) +" degrees' with a height of '"+str(height) +"' and a width of '"+str(width) +"'")
0 commit comments