Versionsvergleich
Aus ProgrammingWiki
Vergleich: 2014-05-16T09:38:43+00:00 → 2014-05-23T10:18:24+00:00
<language>Java</language> | |
| − | === Nikolaushaus === |
| − | |
| − | <code id="53650bf95064e"> |
| − | ´´public void nikolaushaus(Object turtle, double x) { |
| − | |
| − | } |
| − | </code> |
| − | |
| − | <canvas w="400" h="300"></canvas> |
| − | |
| − | <run id="53650bf95085f"> |
| − | canvas1.clear(); |
| − | turtle1.move(100, 250); |
| − | nikolaushaus(int , int) |
| − | nikolaushaus(turtle1, 150); |
| − | </run> |
| − | |
| − | ===Treppe=== |
| − | <code id="53650bf95064e"> |
| − | ´´public void treppe(Object turtle, double x, int n) { |
| − | for (int i, i<=1, i++) |
| − | |
| − | } |
| − | </code> |
| − | <canvas width="300" height="400"></canvas> |
| − | |
| − | <run id="536373fc102e7"> |
| − | canvas2.clear(); |
| − | turtle2.move(150,200); |
| − | treppe(50); |
| − | |
| − | } |
| − | </run> |