write a code of compuer graphics that there is a rectangle ,through which a line is passed and after some processing ,part of a line which is outside a rectangle ,colored red and part of line which is inside a rectangle colored green.?i need reply till tommorow?
computer code that a line of color red ,when passed through a rectangle ,its color changed i.e green and after passing through a rectangle its color again changed to red..........??