Code Sketch


dustbin
By: chinar
Category: Art
clear()
setSpeed(fast)
setPosition(-400,-400)
turnNorth()
setFillColor(cyan)

setPenColor(green)
repeat(4){
    forward(800)
    right()
}
zoom(0.7)
setFillColor(black)
setPosition(-200,-200)
left(60,60)
turnNorth()
forward(250);right();forward(150);right();forward(300)
right();forward(120);hop(15);right();hop(15)
setPenColor(black)
setFillColor(white)
setPenThickness(15)
circle(15)
setPosition(-80,60)
setPenThickness(1)
setPenColor(red)
turnWest()
setFillColor(yellow)
left(50,50);right(50,50)
turnWest()
left(40,40);right(50,60)
turnNorth()
forward(100);right();forward(150);right();forward(40)
setPenColor(white)
setPosition(-222,-30)
turnNorth()
setPenFontSize(30)
write("DUSTBIN")
setPosition(10,-200)
setPenColor(black)
setFillColor(black)
turnWest()
turnNorth()
forward(170);right();forward(100);right();forward(170)
right(90)
forward(30)
right(78)
forward(100)
left(160)
forward(100)
right(83)
forward(35);hop(3);right()
hop(170)
repeat(4){
    forward(200)
    right()
    forward(100)
    right()
}
setPosition(55,165)
repeat(4){
    forward(30)
    right()
    forward(20)
    right()
}
hop(30);right();hop(8);circle(40)
left()
hop(30)
setPenColor(white)
setPenThickness(5)
forward(10)
setPosition(50,250)
circle(5)
setPosition(90,250)
circle(5)
setPosition(55,210);right();forward(20)
setPosition(12,120)
left(45)
setPenColor(black)
back(70)
left(70);forward(90)
right(60)
forward(30)
right(120)
forward(60)
left(110)
forward(65);turnSouth();forward(50)
setPosition(110,120)
left(45)
forward(70);right(20);forward(70)
left(90);forward(30);left(90)
forward(100);left(25);forward(80)
setPosition(-235,109);turnNorth()
right(30)
repeat(4){
    forward(200)
    right(90)
    forward(5)
    right()
}
setPosition(-180,150)
def waste(){
right(45,45);left(40,40)
right(120);forward(50)
right(105)
left(45,45);right(40,40)
right(80)
forward(50)
}
waste()
setPosition(-140,150)
turnNorth()
setPenColor(orange)
setFillColor(orange)
waste()
setPosition(50,-200)
left(70)
setFillColor(black)
setPenColor(Color(10, 117, 10))

setFillColor(ColorMaker.hsl(120, 0.83, 0.23))
setPosition(-400,-400)
turnEast()
forward(800);left()
forward(200)
left();forward(800)
setFillColor(black)
left(30)
hop(20)
setPenColor(black)
setPosition(50,-200)
left(10)
def shoes(){
    repeat(4){
        forward(70)
        right()
        forward(20)
        right()
    }
}
shoes()
turnWest()
setPenColor(yellow)
forward(40)
hop(-40)
left(50)
hop(5)
setPenThickness(15)
forward(15)
right(10)
setPenThickness(5)
forward(50)
right(87)
forward(25)
setPosition(10,-210)
setPenThickness(2)
setPenColor(white)
forward(4);setPosition(5,-215)
forward(4)

setPosition(110,-200)
turnWest()
left(45);setPenColor(black)
shoes()
setPenColor(yellow)
turnWest()
setPenThickness(5)
forward(30)
hop(-45)
left(40)
hop(15)
setPenThickness(15)
forward(15)

setPenThickness(5)
forward(50)
right(87)
forward(25)
setPosition(80,-210)
setPenThickness(2)
setPenColor(white)
forward(4);setPosition(75,-215)
forward(4)
setPosition(400,280)
setFillColor(Color(237, 187, 8))
left(20)
forward(50)
right(50,50)
forward(70);turnEast();forward(87);right();forward(120)
right(45)
setPenThickness(5)
setPenColor(Color(255, 200, 0, 142))
hop(10)
def line(){
forward(40)
right()
hop(30)
left()
back(30)
forward(30)
right()
hop(30)
left()
back(30)
forward()
}
line()
back(25)
right(90)
hop(30)
left(90)
back(5)
forward(30)
back(30)
right(125)
hop(30)
left(120)
forward(30)
back(30)
right(125)
hop(30)
left(120)
forward(30)
invisible()