Turtle Graphics In C#

 


This program is the sample implementation of a logo language in c sharp (C#) . Logo turtle isa 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 anythingon 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.

Related Articles :

Twitter Digg Delicious Stumbleupon Technorati Facebook Email

No comments yet... Be the first to leave a reply!