def agent_portrayal(agent):
    """
    Properties of the agent visualization.
    """
    portrayal = {"Shape": "circle",
                 "Color": f"rgb({140-(agent.speed*3.6)},{50+(agent.speed*3.6)},0)",
                 "Filled": "true",
                 "r": 4}
    return portrayal