``` ### City Traffic Simulation This page brings a miniature city to life with a focus on realistic traffic flow and visual feedback. - **Traffic Light System:** A timed cycle controls red, yellow, and green lights at every intersection. Cars automatically stop at red lights and proceed on green, creating a safe and logical traffic flow. - **Autonomous Vehicles:** Cars drive along the roads, making random but valid turns at intersections. Their speed and color vary, and the traffic density changes over time, simulating rush hour and quiet periods. - **Living Environment:** Buildings have windows that randomly light up, and pedestrians cross at crosswalks. Trees and sidewalks add detail, while an on-screen counter shows the current number of cars and pedestrians, giving you real-time feedback on the simulation's activity. --- **Optimization Tip:** You can adjust the `LIGHT_PHASES` array (line ~65) to change the traffic light timing, or modify the `trafficDensity()` function (line ~255) to alter how the number of cars fluctuates over time.