#include "../jnilib.h"
#include "../graphic/color.h"
Include dependency graph for simpleturtle.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
void | backward (jfloat l) |
Moves the turtle backward. | |
void | clearScreen () |
Clears the Screen. | |
void | forward (jfloat l) |
Moves the turtle forward. | |
void | initSimpleTurtle (const char *classpath, const char *title, jint framewidth, jint frameheight) |
Initializes the Simple Turtle by creating a JVM, creating and displaying a frame and creating a TurtleGraphic for handling the Simple Turtle calls. | |
void | left (jfloat angle) |
Turns the turtle left. | |
void | penDown () |
Tells the turtle to draw while moveing. | |
void | penUp () |
Tells the turtle not to draw while moveing. | |
void | print (const char *text) |
Prints the Text on Screen at the current position of the "turtle". | |
void | right (jfloat angle) |
Turns the turtle right. | |
void | setBGColor (Color c) |
Sets the background color of the Frame. | |
void | setColor (Color c) |
Sets the color with which the turtle draws. | |
void | waitForClosingFrame () |
Waits until the frame is closed by the user. |
The SimpleTurtle provides an easy way of the TurtleGraphic. It creates the Frame for you and you can use simple functions to draw and write on the Frame.
If the Simple Turtle is not initialized by calling initSimpleTurtle() before the first Simple Turtle function is called, it will be initialized with default values.
Definition in file simpleturtle.h.
|
Moves the turtle backward.
Definition at line 116 of file simpleturtle.c. |
|
Clears the Screen.
Definition at line 198 of file simpleturtle.c. |
|
Moves the turtle forward.
Definition at line 104 of file simpleturtle.c. |
|
Initializes the Simple Turtle by creating a JVM, creating and displaying a frame and creating a TurtleGraphic for handling the Simple Turtle calls.
Definition at line 70 of file simpleturtle.c. |
|
Turns the turtle left.
Definition at line 128 of file simpleturtle.c. |
|
Tells the turtle to draw while moveing.
Definition at line 160 of file simpleturtle.c. |
|
Tells the turtle not to draw while moveing.
Definition at line 150 of file simpleturtle.c. |
|
Prints the Text on Screen at the current position of the "turtle".
Definition at line 170 of file simpleturtle.c. |
|
Turns the turtle right.
Definition at line 140 of file simpleturtle.c. |
|
Sets the background color of the Frame.
Definition at line 190 of file simpleturtle.c. |
|
Sets the color with which the turtle draws.
Definition at line 180 of file simpleturtle.c. |
|
Waits until the frame is closed by the user.
Definition at line 206 of file simpleturtle.c. |