Versionsvergleich

Aus ProgrammingWiki

Vergleich: 2016-06-16T08:14:51+00:00 → 2016-06-16T08:15:24+00:00

<language>Javascript</language>
−
[[felmueller/tests|zurück]]
+
[[felmueller/Tests|zurück]]
<br>
<canvas w="400" h="300"></canvas>
<code id="5761b113be083" hidden>
function center(turtle) {
 turtle.move(200, 150);
}
function black(turtle) {
 turtle.penColor(0, 0, 0);
}
function red(turtle) {
 turtle.penColor(255, 0, 0);
}
function brown(turtle) {
 turtle.penColor(100, 50, 0);
}
function orange(turtle) {
 turtle.penColor(255, 100, 0);
}
function yellow(turtle) {
 turtle.penColor(255, 200, 0);
}
function green(turtle) {
 turtle.penColor(0, 255, 0);
}
function blue(turtle) {
 turtle.penColor(0, 0, 255);
}
function pink(turtle) {
 turtle.penColor(200, 50, 200);
}
</code>
<run id="5761b113be323">
canvas1.clear();
turtle1.move(200, 150);
</run>