Beispiel #1
0
 private void InitTurtle(Canvas canvas, Color penColor, int penSize)
 {
     this.canvas      = canvas;
     pen              = new Pen(penColor, penSize);
     pos              = new Vector2();
     turtleimage      = new TurtleImage();
     turtleimage.CPos = canvas.Children.Add(turtleimage.GetTurtleImage);
     Canvas.SetZIndex(canvas.Children[turtleimage.CPos], 100); //a teknős mindig legfelül
     Home();
 }
Beispiel #2
0
 private void InitTurtle(Canvas canvas, Color penColor, int penSize)
 {
     this.canvas = canvas;
     pen = new Pen(penColor, penSize);
     pos = new Vector2();
     turtleimage = new TurtleImage();
     turtleimage.CPos = canvas.Children.Add(turtleimage.GetTurtleImage);
     Canvas.SetZIndex(canvas.Children[turtleimage.CPos], 100); //a teknős mindig legfelül
     Home();
 }