Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/htl-bulme/turtlegraphics
Platform independent .Net library for turtle graphics
https://github.com/htl-bulme/turtlegraphics
avalonia csharp dotnet learning platform-independent turtle-graphics
Last synced: about 1 month ago
JSON representation
Platform independent .Net library for turtle graphics
- Host: GitHub
- URL: https://github.com/htl-bulme/turtlegraphics
- Owner: HTL-Bulme
- License: mit
- Created: 2024-10-19T13:28:53.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-11-16T09:33:01.000Z (2 months ago)
- Last Synced: 2024-12-05T18:07:37.548Z (about 2 months ago)
- Topics: avalonia, csharp, dotnet, learning, platform-independent, turtle-graphics
- Language: C#
- Homepage: https://www.nuget.org/packages/TurtleGraphics
- Size: 78.1 KB
- Stars: 5
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Platform Independent Turtle Graphics for .Net
**TurtleGraphics** is a platform independent library
that provides turtle graphics for the .Net Platform.## Example
```csharp
Turtle.SetPenWidth(5);
Turtle.SetColor("blue");
for (int i = 0; i < 4; i++)
{
Turtle.Forward(50);
Turtle.TurnRight(90);
}
Turtle.ShowTurtle();
```# ![example](https://raw.githubusercontent.com/HTL-Bulme/TurtleGraphics/master/docs/Screenshot.png)
## All Examples
Comming Soon## Provided Functionality
### Turtle.Forward
Moves the turtle x steps forward.
### Turtle.Back
Moves the turtle x steps backwards.
### Turtle.TurnRight
Moves the turtle turn right by x degrees.
### Turtle.TurnLeft
Moves the turtle turn left by x degrees.
### Turtle.PenUp
Lifts the pen.
### Turtle.PenDown
Puts the pen down again.
### Turtle.Dot
Paints a dot at the current position with a given diameter.
### Turtle.SetColor
Sets the current color for fills or lines.
Valid colors are listed here: [All Colors](https://raw.githubusercontent.com/HTL-Bulme/TurtleGraphics/refs/heads/master/docs/DotNetColorTable.svg)
### Turtle.SetPenWidth
Sets the current line width.
### Turtle.BeginFill
Call this Function to start filling a polygon.
### Turtle.EndFill
Call this Function to end to filling.
### Turtle.Print
Prints the given number of text on the console.
### Turtle.InputDouble
Asks the user to input a double number.
### Turtle.InputFloat
Asks the user to input a float number.
### Turtle.InputInt
Asks the user to input a int number.
### Turtle.InputLong
Asks the user to input a long number.
### Turtle.InputString
Asks the user to input a string value.## Dependencies
+ .Net Standard 2.0
+ Avalonia
+ Avalonia.Desktop
+ Avalonia.Themes.Fluent