Kojo Projects - Introduction, Square and Circle, May 3, 2012, Cardinal Forest Elementary School
Kojo Programming
Learn about Kojo
E Books on Kojo
Back to Kojo Projects
Kojo exercise for May 3, 2012 - Drawing squares, polygons, circles
repeat(), forward(), turn(), left(), right()
- Open Kojo
- Open the square program
- Draws a square with side = 100
- Here's the program:
- Draw a hexagon. Change the program to repeat(6) and turn(80)
- The hexagon is not correct
- Try right(40)
- The hexagon is not correct
- What is the correct number for right() ?
- The hexagon should look like this:
- Try to draw two hexagons, blue and red, and next to each other.
- Here are the two hexagons:
Hint: Here's how to put two squares next to each other:
clear()
setPenColor(red)
repeat(4) {
forward(100)
right(90)
}
setPenColor(blue)
repeat(4) {
forward(100)
left(90)
}
- Now try to draw three hexagons, red, blue, and yellow:
Hint: Here's how to put three squares next to each other:
clear()
setPenColor(red)
repeat(4) {
forward(100)
right(90)
}
setPenColor(blue)
repeat(4) {
forward(100)
left(90)
}
right(90)
setPenColor(yellow)
repeat(4) {
forward(100)
right(90)
}
Part 2
- Open the circle program
- An orange circle with a green outline
- Use different colors, choose from:
black, blue, brown, cyan, drakGray, gray,
green, orange, pink, purple, red, white, yellow
- Pink circle with purple outline:
- Here's a program for pink and purple:
Part 3
- Make a bigger circle.
- Use forward(2)
- Try to draw an orange and green snowman
- Here's a program that you can use: