cleari() // Clear the canvas
// 1. Create a proper Picture object with color properties correctly applied
val boxPic = Picture.rectangle(100, 100)
boxPic.setFillColor(green)
boxPic.setPenColor(blue)
// 2. Draw the picture on the canvas
drawCentered(boxPic)
// 3. Animate the rotation continuously using Kojo's command syntax
var angle = 0.0
animate {
angle += 1.0
boxPic.rotate(angle) // Imperative rotation command
}