ok so i have stored the co-ordinates of a triangle, and what i would like to happen is that as the mouse moves across the screen it would draw a line from the current mouse position to each of the two nearest points of the current triangle, then it would be looped over, so eventually the screen will be filled with lines building together to give the kind of look of the patterns on the processing web banner.
so i was wondering if someone could help me, i cannot work out what the code would be to draw a line from the current mouse position to each of the nearest two of those points of the triangle.
does anyone have any idea?
or a link to tutorial that may help me.
thanks.
or a link to tutorial that may help me.
thanks.
1