str2d.circle
- str2d.circle(radius, height, width, char='*')[source]
Create a circle. This is a special application of the boundary function. The function that determines the circle is lambda x, y: x**2 + y**2 < radius**2.
- Parameters:
radius (float) – The radius of the circle.
height (int) – The number of rows.
width (int) – The number of columns.
char (str, optional) – The character to use, by default ‘*’.
- Returns:
A new Str2D object with the circle.
- Return type:
See also
boundary
Create a mask where func is True and False.
Str2D.circle
Create a circle.