コード例 #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();
 }
コード例 #2
0
ファイル: Turtle.cs プロジェクト: RoboLOGO/IDE
 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();
 }