your hint is between these lines. try changing the fillOval method to fillRect and you get rectangles instead of ovals. now find a way to draw the stars using drawPolygon method.



while (y <...