TurtleGraphics 1.0.2
dotnet add package TurtleGraphics --version 1.0.2
NuGet\Install-Package TurtleGraphics -Version 1.0.2
<PackageReference Include="TurtleGraphics" Version="1.0.2" />
paket add TurtleGraphics --version 1.0.2
#r "nuget: TurtleGraphics, 1.0.2"
// Install TurtleGraphics as a Cake Addin #addin nuget:?package=TurtleGraphics&version=1.0.2 // Install TurtleGraphics as a Cake Tool #tool nuget:?package=TurtleGraphics&version=1.0.2
Platform Independent Turtle Graphics for .Net
TurtleGraphics is a platform independent library that provides turtle graphics for the .Net Platform.
Example
Turtle.SetPenWidth(5);
Turtle.SetColor("blue");
for (int i = 0; i < 4; i++)
{
Turtle.Forward(50);
Turtle.TurnRight(90);
}
Turtle.ShowTurtle();
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 https://www.w3schools.com/tags/ref_colornames.asp
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
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Avalonia (>= 11.1.4)
- Avalonia.Desktop (>= 11.1.4)
- Avalonia.Themes.Fluent (>= 11.1.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial Version