Search Forum
(57415 Postings)
Search Site/Articles

Archived Articles
712 Articles

C# Books
C# Consultants
What Is C#?
Download Compiler
Code Archive
Archived Articles
Advertise
Contribute
C# Jobs
Beginners Tutorial
C# Contractors
C# Consulting
Links
C# Manual
Contact Us
Legal

GoDiagram for .NET from Northwoods Software www.nwoods.com


              
Printable Version

Turtle Graphics In C#
By Syed Hasan Adil

This program is the sample implementation of a logo language in c sharp (C#) . Logo turtle is a turtle drawing application ,which draw line on the screen with different colors and different shape. i am also providing some of samples figure implementations.

Download turtlgraphics.zip

figure1 (press figure1 button)

figure2 (press figure2 button)

figure3 (press figure3 button)

figure4 (press figure4 button)

figure5 (press figure5 button)
All the Code written in clear coding and exception handling(mostly).
**********************************************************
How Do You Use It?

This application uses turtle graphics picture . so place the picture in any appropriate place . i am using d drive so change the path of turtle.jpg if you needed on line 63.

image = Image.FromFile("d:\mouse.jpg"); (write your path)
********************************************************

instructions

1)For changing the Direction of turtle drawing

put the angle (in degrees measure) in right setdirection textfield and press setdirection button

2)For setting the length of drawing

put the length in the form of integer and than press Move Forward to draw.

3) pen up

in this mode turtle can be move in any specified derection and length but not draw anything on screen.

4)pen down

in this mode turtle can be move in any specified derection and length but also draw

5)clear screen

for clear the screen.

if any comment,suggestion and want to learn any function,complete code or want to use Logo library written by me in C# and also in java email me. i will reply you soon.