Circle
A circle shape.
Usage
Circle()Parameters
radius: float-
Circle radius.
color: str = "blue"-
Fill color.
Methods
| Name | Description |
|---|---|
| area() | Compute the area of the circle. |
| describe() | Return a human-readable description. |
| perimeter() | Compute the circumference. |
area()
Compute the area of the circle.
Usage
area()Returns
float-
Pi * radius^2.
describe()
Return a human-readable description.
Usage
describe()Returns
str-
Description string.
perimeter()
Compute the circumference.
Usage
perimeter()Returns
float-
2 * pi * radius.