computer graphics

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?
Last edited on
Can't you write this program yourself?
Read the rules before you post problems. NO giving your homework to people to do it for you. Ask for help, not for direct answers.
You could use the stencil. You draw the line 2 times (one with each color), but you change what the stencil let pass.
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..........??
Topic archived. No new replies allowed.