class Turtle
Allows to use turtle graphics like in Logo language.
This is the simplest way to start working with computer graphics. You command the turtle to turn left or right and to go forward or backward. It draws on the window while it moving. You also can lift the turtle's pen up and move without drawing.
Turtle(window: Window)
Allows to use turtle graphics like in Logo language. |
val window: Window |
fun backward(distance: Int): Unit |
|
fun forward(distance: Int): Unit |
|
fun home(): Unit |
|
fun penDown(): Unit
Put the pen down. Turtle is going to draw line wherever is goes. |
|
fun penUp(): Unit
Lift the pen up. Turtle is going to move without drawing |
|
fun setColor(color: Color): Unit
set the color of the pen using Color class. fun setColor(color: Int): Unit
Set one of 16 colors using integer number 0 .. 15 |
|
fun turnLeft(angle: Double): Unit |
|
fun turnRight(angle: Double): Unit |