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()
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)
}
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
Part 3