final float TURN_SPEED = 5; float theta = 0; float speed = 0.1; float radius = 125; void setup() { size(500,500); } void draw() { background(255); drawFan(); rotateFan(); } void drawFan() { float fX = width/2; float fY = height/2; float fSize = width/10; float xR = cos(theta)*radius; float yR = sin(theta)*radius; fill(255); ellipse(fX,fY,250,250); ellipse(fX,fY,200,200); ellipse(fX,fY,150,150); ellipse(fX,fY,100,100); fill(0,0,255); triangle(250+cos(theta)*radius,125+sin(theta)*radius,250,240,280+xR,180+yR); triangle(250,250,135,300,175,250); triangle(250,250,350,325,325,265); fill(0); ellipse(fX,fY,fSize,fSize); } void rotateFan() { theta = theta + speed; }

This post has been edited by **macosxnerd101**: 12 June 2018 - 09:47 PM

Reason for edit:: Please use code tags: [code] Your code goes here [/code]