This is my sketch:
http://www.openprocessing.org/visuals/?visualID=12951
It might be running slowly on your system and that is the problem. It runs ok on mine but it slows down as you start to zoom in. The problem is that it takes a long time to draw very large ellipses and arcs. I've already made sure it's not drawing yinyangs that are completely off the screen.
I'm thinking that in order to increase the speed I need to rewrite the method for drawing arcs so it doesn't draw pixels that are off the screen. Actually there is really 1 shape I am drawing, which is a a half a yingyang. Maybe I should make a method which draws this shape?
I tried to find the code for arc() but I don't know where to find it. Is it from Java? There must be a more efficient way to do this.
It might be running slowly on your system and that is the problem. It runs ok on mine but it slows down as you start to zoom in. The problem is that it takes a long time to draw very large ellipses and arcs. I've already made sure it's not drawing yinyangs that are completely off the screen.
I'm thinking that in order to increase the speed I need to rewrite the method for drawing arcs so it doesn't draw pixels that are off the screen. Actually there is really 1 shape I am drawing, which is a a half a yingyang. Maybe I should make a method which draws this shape?
I tried to find the code for arc() but I don't know where to find it. Is it from Java? There must be a more efficient way to do this.
1