The way it is supposed to work and what I understand as the law is that if you are in the intersection under a green or yellow light, you have the right of way to clear the intersection, even after the light turns red. But I went into the intersection when the light was red, so I got a ticket.