0% found this document useful (0 votes)
29 views5 pages

Width Height Speed: 'Tugas Kelompok 'KLP 1B 'Membuat Huruf 'F

The document contains code that uses a turtle to draw various letters and shapes in different colors. It sets the size of the graphics window and speed of the turtle. Then it provides instructions to draw the letters f, i, k, and p as well as several boxes by changing the turtle's position, direction, color, and distance moved.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views5 pages

Width Height Speed: 'Tugas Kelompok 'KLP 1B 'Membuat Huruf 'F

The document contains code that uses a turtle to draw various letters and shapes in different colors. It sets the size of the graphics window and speed of the turtle. Then it provides instructions to draw the letters f, i, k, and p as well as several boxes by changing the turtle's position, direction, color, and distance moved.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

GraphicsWindow.

Width=1000
GraphicsWindow.Height=500
Turtle.Speed=10

'TUGAS KELOMPOK
'KLP 1B

'membuat huruf
'f
Turtle.x=200
Turtle.y=300
GraphicsWindow.PenColor="blue"
Turtle.Turn(0)
Turtle.Move(80)

Turtle.Turn(90)
Turtle.Move(50)

Turtle.Turn(90)
Turtle.Move(20)

Turtle.Turn(90)
Turtle.Move(30)

Turtle.Turn(-90)
Turtle.Move(10)

Turtle.Turn(-90)
Turtle.Move(30)

Turtle.Turn(90)
Turtle.Move(20)

Turtle.Turn(90)
Turtle.Move(30)

Turtle.Turn(-90)
Turtle.Move(30)

Turtle.Turn(90)
Turtle.Move(20)

'kotak
GraphicsWindow.PenColor="red"
Turtle.x=180
Turtle.y=300
Turtle.Turn(90)
Turtle.Move(100)

Turtle.Turn(90)
Turtle.Move(90)

Turtle.Turn(90)
Turtle.Move(120)

Turtle.Turn(90)
Turtle.Move(90)

Turtle.Turn(90)
Turtle.Move(20)

'i..........
GraphicsWindow.PenColor="green"
Turtle.x=320
Turtle.y=300

Turtle.Turn(0)
Turtle.Move(80)

Turtle.Turn(90)
Turtle.Move(30)

Turtle.Turn(90)
Turtle.Move(80)

Turtle.Turn(90)
Turtle.Move(30)
'kotak
GraphicsWindow.PenColor="yellow"
Turtle.x=300
Turtle.y=300

Turtle.Turn(90)
Turtle.Move(100)

Turtle.Turn(90)
Turtle.Move(70)

Turtle.Turn(90)
Turtle.Move(120)
Turtle.Turn(90)
Turtle.Move(70)

Turtle.Turn(90)
Turtle.Move(20)

'k............
GraphicsWindow.PenColor="black"
Turtle.x=420
Turtle.y=300

Turtle.Turn(0)
Turtle.Move(80)

Turtle.Turn(90)
Turtle.Move(20)

Turtle.Turn(90)
Turtle.Move(25)

Turtle.Turn(-120)
Turtle.Move(50)

Turtle.Turn(90)
Turtle.Move(20)

Turtle.Turn(90)
Turtle.Move(50)

Turtle.Turn(-120)
Turtle.Move(50)

Turtle.Turn(90)
Turtle.Move(20)

Turtle.Turn(90)
Turtle.Move(50)

Turtle.Turn(-120)
Turtle.Move(25)

Turtle.Turn(90)
Turtle.Move(20)

Turtle.Turn(90)
Turtle.Move(5)
'kotak
GraphicsWindow.PenColor="brown"
Turtle.x=400
Turtle.y=300

Turtle.Turn(0)
Turtle.Move(100)

Turtle.Turn(90)
Turtle.Move(115)

Turtle.Turn(90)
Turtle.Move(120)

Turtle.Turn(90)
Turtle.Move(115)

Turtle.Turn(90)
Turtle.Move(40)

'p
GraphicsWindow.PenColor="red"
Turtle.x=560
Turtle.y=300

Turtle.Turn(0)
Turtle.Move(80)

Turtle.Turn(90)
Turtle.Move(60)

Turtle.Turn(90)
Turtle.Move(40)

Turtle.Turn(90)
Turtle.Move(40)

Turtle.Turn(-90)
Turtle.Move(40)

Turtle.Turn(90)
Turtle.Move(20)

'kotak
GraphicsWindow.PenColor="blue"
Turtle.x=540
Turtle.y=300

Turtle.Turn(90)
Turtle.Move(100)

Turtle.Turn(90)
Turtle.Move(100)

Turtle.Turn(90)
Turtle.Move(120)

Turtle.Turn(90)
Turtle.Move(100)

Turtle.Turn(90)
Turtle.Move(20)

Turtle.x=180
Turtle.y=340

You might also like