Define a class, TrafficLight
, that produces a drawing that looks
like a traffic light. Use drawOval
, fillOval
, and
drawRect
. All three methods take four arguments: x
,
y
, width
, and height
. Arrange for each circle to have
the proper color.