computer graphics

Nov 26, 2011 at 3:50pm
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 Nov 26, 2011 at 3:51pm
Nov 26, 2011 at 4:01pm
Can't you write this program yourself?
Nov 26, 2011 at 4:56pm
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.
Nov 26, 2011 at 5:04pm
You could use the stencil. You draw the line 2 times (one with each color), but you change what the stencil let pass.
Nov 27, 2011 at 3:57pm
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.