Code Sketch


Scenery
By: Soham Murgaonkar
Category: Art
clear()
//showAxes()
//showGrid()
setSpeed(fast)
val cb=canvasBounds
setBackgroundV(Color(17, 22, 19), Color(12, 209, 242))
//setBackground(c)
setPenColor(black)
//Triangle
setFillColor(Color(232, 37, 41))
moveTo(100, 100)
moveTo(200, 0)
moveTo(0, 0)

//square
setFillColor(yellow)
moveTo(0, -150)
moveTo(200, -150)
moveTo(200, 0)

//roof
setFillColor(brown)
right
forward(200)
left
moveTo(300, 100)
moveTo(100, 100)

//rectangle
setFillColor(Color(255, 255, 21))
left
hop(250)
left
hop(100)
forward(200)
left
forward(150)
left
forward(200)
right


hop(100)
//chimney
setFillColor(brown)
repeat(3){
    forward(50)
    right
}
hop(200)
left
hop(150)
//door
setFillColor(Color(46, 48, 36))
repeat(4){
    forward(100)
    left
}
left
hop(200)
//window
repeat(2){
    forward(100)
    right
    forward(50)
    right
}

hop(-500)
setFillColor(brown)
repeat(2){
    forward(50)
    right
    forward(100)
    right
}
hop(-100)
val clr =cm.rgb(7, 144, 13)
setFillColor(clr)
forward(250)
moveTo(-225, 100)
moveTo(-350, -50)
left(40)
hop(-100)
left
hop(50)
forward(150)
moveTo(-225, 150)
moveTo(-300, 50)


invisible()