Created
September 25, 2012 12:32
-
-
Save panmari/3781499 to your computer and use it in GitHub Desktop.
Many Turtles & Arc => flickering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tu16java | |
package app.tu16; | |
import turtle.*; | |
public class Tu16 extends Playground | |
{ | |
public void playgroundPressed(double x, double y) | |
{ | |
Turtle joe = new Turtle(x, y); | |
arc(joe); | |
} | |
private void arc(Turtle t) { | |
for (int i = 0; i < 720 / 3; i++) { | |
t.fd(1); | |
t.rt(3); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When calling fd(..) in short succession with many turtles on the board, they start to flicker. Issue does not show in http://www.android-turtlegrafik.ch/index.php?inhalt_links=navigation.inc.php&inhalt_mitte=tu/events.inc.php