![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||
Turtles |
||||||||||
![]() |
||||||||||
If you are learning to program using Jurtle's tutorial you will start out by writing Turtles. Turtles are small pieces of Java code (technically called Java Classes) that Jurtle executes. The Turtles code (which you write) is stored in a file with the Turtles name and an extension of .java. Before being run, this code is compiled into bytecodes that are contained in a file with the Turtles name and a .class extension. It is this bytecode that is actually executed by the Java Virtual Machine. Turtles generally draw on the screen by using Java commands to move an on-screen marker called the turtle. If the turtles pen is down as it moves, it leaves a visible trail resulting in a picture. Commands that the turtles recognize are part of the Turtles API (Application Programmers Interface). The most commonly used turtle commands may be seen by choosing Basic Turtle Commands from the Help menu. To see the full API, choose Show Jurtle API from the Help menu.
|
||||||||||
Turtles |
||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |