Hi, I’m trying to figure out how I would make a triangle rotate 360 degrees around a center point, I have it working for a circle that can spin around a central location at any given radius, but I cannot seem to figure out how I would do this for a triangle. any help/tips would be appreciated.(Below is the example given on how to make a circular object spin, and I’m trying to accomplish this with a triangle instead of ellipse)

```
float theta = 0;
float delta = 0.1;
float radius = 150;
float size = 10;
void setup()
{
size(500, 500);
}
void draw()
{
background(0);
float x = cos(theta)*radius;
float y = sin(theta)*radius;
ellipse(250+x,250+y,20,20);
theta = theta + delta;
}
```