if center?x,y??radius = 5?how to traverse all points coordinate on the circle’s perimeter?step = 1?sin cos?

My first attempt would be to first figure out how many pixels `p`

there are on the perimeter

```
p = 2 x pi x radius
```

then do a loop with angle from 0 to 360 in steps of `p`

.

The position on the perimeter for angle a should be

```
x = radius*math.sin(a)
y = radius*math.cos(a)
```

You can do the rectangle similarly