Trying to draw curves but they pop out of the page
in
Programming Questions
•
11 months ago
Hello, I'm making a program that displays protein itneractions and I have basically a circular graph with curves going between various arcs, as seen here
http://puu.sh/1gRI7.png (I didnt embed it because it is quite a large screen shot as I have a very high resolution screen). Now if you watch the video here
http://puu.sh/1fff5.mov you can see that when i rotate the graph, the curves are 3d and stick out of the page. I need them to be 2d and so when you rotate it, they stay flat to the page and rotate with the graph but flat. I've tried many different things but can't get it to work, any suggestions? :(
Here is the drawing part of the code
- float randX = 0.1;
- float randY = 0.1;
- for (Heading H: Mappings.values())
- {
- randX = (randX+(10));//*(-1);
- randY = (randY+(15));//*(-1);
- noFill();
- curve(expcoords.Coordx+randX, expcoords.Coordy+randY,expcoords.Coordx, expcoords.Coordy, H.Coordx, H.Coordy, H.Coordx+randX, H.Coordy+randY);
- }
1