Kurbağa ile çokgen çizelim
1.KenarSayisi = 12
2.uzunluk = 400 / KenarSayisi
3.acı = 360 / KenarSayisi
4.For i = 1 To KenarSayisi
5. Turtle.Move(uzunluk)
6. Turtle.Turn(acı)
7.EndFor |
1.KenarSayisi = 12
2.uzunluk = 400 / KenarSayisi
3.acı = 360 / KenarSayisi
4.For i = 1 To KenarSayisi
5. Turtle.Move(uzunluk)
6. Turtle.Turn(acı)
7.EndFor |
1.Turtle.Move(100)
2.Turtle.TurnRight()
3.Turtle.Move(100)
4.Turtle.TurnRight()
5.Turtle.Move(100)
6.Turtle.TurnRight()
7.Turtle.Move(100)
8.Turtle.TurnRight() |
1.GraphicsWindow.Width = 200
2.GraphicsWindow.Height = 200
3.GraphicsWindow.BackgroundColor
= "Black"
4.For i = 1 To 300
5.GraphicsWindow.BrushColor =
GraphicsWindow.GetRandomColor()
6.x = Math.GetRandomNumber(200)
7.y = Math.GetRandomNumber(200)
8.GraphicsWindow.FillEllipse(x,
y, 10, 10)
9. EndFor |
1.GraphicsWindow.BackgroundColor
= "Black"
2.GraphicsWindow.PenColor =
"Red"
3.GraphicsWindow.Width = 300
4.GraphicsWindow.Height = 300
5.For i = 1 To 100 Step 5
6.GraphicsWindow. DrawEllipse (150-i, 150-i, i*2, i*2)
7.EndFor
8.GraphicsWindow.Show()
|
1.GraphicsWindow.BackgroundColor
= "Black"
2.GraphicsWindow.PenColor =
"Red"
3.GraphicsWindow.Width = 300
4.GraphicsWindow.Height = 300
5.For i = 1 To 100 Step 5
6.GraphicsWindow.DrawRectangle(150-i, 150-i, i*2, i*2)
7.EndFor
8.GraphicsWindow.Show()
|