https://github.com/simplyprogrammer/javafx-turtle
JavaFx "Imagine" like turtle.
https://github.com/simplyprogrammer/javafx-turtle
java javafx turtle-graphics
Last synced: 5 months ago
JSON representation
JavaFx "Imagine" like turtle.
- Host: GitHub
- URL: https://github.com/simplyprogrammer/javafx-turtle
- Owner: SimplyProgrammer
- Created: 2019-09-25T16:48:34.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-21T12:00:19.000Z (over 5 years ago)
- Last Synced: 2025-03-27T19:52:03.286Z (8 months ago)
- Topics: java, javafx, turtle-graphics
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java-Turtle
Java imagine like turtle.
This is lib that alows you to use turtle graphics in java!
All what you need to do is download and import lib and make your main class looks like this:
package some.awesome.package;
import javafx.stage.Stage;
import ugp.org.Turtle.Actions;
import ugp.org.Turtle.ShowTurtle;
import ugp.org.Turtle.Turtle;
public class Main extends ShowTurtle
{
public static void main(String[] args)
{
launch(args);
}
@Override
protected void Program(Turtle t, Stage s)
{
//Write your turtle commands here!
//For example, this will draw "HI!"
Actions.DrawH(t, 100);
t.penUp();
t.Right(90);
t.Forward(110);
t.Right(90);
t.penDown();
Actions.DrawI(t, 100);
t.Left(90);
t.penUp();
t.Forward(80);
t.penDown();
t.Left(90);
Actions.DrawExclMark(t, 100);
}
}