Code Sketch


Square
By: Priyanka P. Pednekar
Category: Math
clear()

showAxes() 

setSpeed(fast)

setPenColor(red)
setPenThickness(5)
setFillColor(Color(0, 65, 196))
setBackground(Color(116, 247, 50))

//setBackgroundH(Color(0, 239, 212), Color(255, 114, 151))
//setBackgroundV(Color(0, 239, 212), Color(255, 114, 151))

//To draw Square without repeat command
//forward(100)
//right()
//forward(100)
//right()
//forward(100)
//right()
//forward(100)
//right()

//To draw Square with repeat command
repeat(4) {
  forward(100)
right()  
}