Academy: 6.3.5 Cmu Cs

Shapes moving at different speeds or failing to stop at the center Learning Outcomes

colorList = [] for i in range(numStripes): redValue = 255 + (i * (-255 / (numStripes - 1))) blueValue = 0 + (i * (255 / (numStripes - 1))) # Clamp values to ensure they stay within 0-255 (avoid floating point errors) redValue = max(0, min(255, int(redValue))) blueValue = max(0, min(255, int(blueValue))) colorList.append((redValue, 0, blueValue)) 6.3.5 Cmu Cs Academy

Another possible version:

def calculate_area(width, height): return width * height Shapes moving at different speeds or failing to

: Your Rect x-position is 0 * 2.666 , 1 * 2.666 = 2.666, 2 * 2.666 = 5.332. Eventually, rounding errors leave tiny gaps. Fix : CMU Graphics handles floats, but if you see gaps, use Rect(round(rectX), ...) or ensure stripeWidth is a float. : Rotate it and move it toward the center

: Rotate it and move it toward the center. 3. Add completion logic

Let me know the exact wording of from your CMU CS Academy lesson for a precise solution.