dlg_draw_circle()

Draws a circle on an image component within a dialog.

Syntax

planetcnc.dlg_draw_circle(component, x, y, radius, thickness, border=True, fill=False)

Parameters

Parameter Type Description Comment
component capsule Capsule object representing the component.
x float X-coordinate of the circle center.
y float Y-coordinate of the circle center.
radius float Radius of the circle.
thickness float Thickness of the circle's border.
border bool `True` to draw the border, `False` to omit it. optional
fill bool `True` to fill the circle, `False` for no fill. optional

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
# Draw a circle on an image component
planetcnc.dlg_draw_circle(my_component, 50, 50, 20, 2, True, False)
 
print("Circle drawn on image.")

See also

dlg_draw_line
dlg_draw_arrow
dlg_draw_circle
dlg_draw_rect