Code Sketch


scenery
By: perciana gomes
clear()
setSpeed(fast)
showAxes()

setPenColor(black)
setPenThickness(5)
right()
forward(100)
//triangle
setFillColor(Color(88, 112, 180))
repeat(2)
{
turn(120)
forward(200) 
}
left(120)
forward(100) 
hop(100)
//square
setFillColor(Color(255, 180, 81))
repeat(3)
{
right()
forward(200)
}
right
hop(100)
left
hop(50)
//rectangle
setFillColor(green)
right
forward(50)
right()
forward(25)
right()
forward(100)
right()
forward(25)
right()
forward(50)
right()
hop(150)
left
//rectangle
setFillColor(brown)
forward(25)
right()
forward(100)
right()
forward(50)
right()
forward(100)
right()
forward(50)
hop(10)
//square
turn(90)
repeat(4)
{
forward(50)
right
}
right
hop(50)
//triangle
repeat(2)
{
turn(120)
forward(50) 
}
turn(30)
right
hop(120)
right
//square
turn(-360)
repeat(4)
{
forward(50)
right
}
right
hop(50)
//triangle
repeat(2)
{
turn(120)
forward(50) 
}
turn(30)
//activity2background
def sky=cm.linearGradient(
    0, 100, 
blue,
0, -150, 
green, 
false)
setBackground(sky)
//activity3 sun
def sun=cm.radialMultipleGradient(
    -100, 150, 
80, 
Seq(0,0.40,0.50), 
Seq(orange,yellow,Color(114, 199, 241, 234)),
false)
//setBackground(sun)

right(180)
hop (215)
right()
hop(-15)
setFillColor(sun)
setPenColor(noColor)
left(360,35)
hop(180)
left
right
 def crow(size:Int)
{
    setPenColor(black)
    setFillColor(noColor)
    right(55,size)
    left(120)
    right(55,size)
    right(10)
    hop(15)
}
crow(28)
def crows(step:Int,size:Int)
{
    if(step==0)
    {
    }
    else
    {
        crow(size)
        crows(step-1,size)
    }
}
crows(2,30)

def shape1 = Picture{
    right(135)
    forward(141.42)
    left(135)
    forward(200)
    left(135)
    forward(141.42)
}.thatsFilledWith(Color(96, 0, 42))
.thatsStrokeColored(Color(96, 0, 42))

def shape2 = Picture{
    right(135)
    forward(141.42)
    left(135)
    forward(200)
    left(135)
    forward(141.42)
}.thatsFilledWith(Color(255, 75, 15)).
thatsStrokeColored(Color(255, 75, 15))



def shape3 = Picture{
    right()
    forward(100)
    left(135)
    forward(70.71)
    left(90)
    forward(70.71)   
}.thatsFilledWith(green)
.thatsStrokeColored(green)

def shape4 = Picture{
    right(135)
    forward(70.71)
    right(90)
    forward(70.71)
    right(90)
    forward(70.71)
    right(90)
    forward(70.71)
    right(90)
}.thatsFilledWith(yellow)
.thatsStrokeColored(yellow)



def shape5 = Picture{
    right()
    forward(100)
    left(135)
    forward(70.71)
    left(90)
    forward(70.71)   
}.thatsFilledWith(Color(248, 15, 11))
.thatsStrokeColored(Color(234, 42, 13))

def shape6 = Picture{
    forward(100)
    right(135)
    forward(70.71)
    right(45)
    forward(100)
    right(135)
    forward(70.71)
}.thatsFilledWith(Color(214, 0, 49))
.thatsStrokeColored(Color(214, 0, 49))

def shape7 = Picture {
    left(45)
    forward(141.42)
    left(135)
    forward(100)
    left(90)
    forward(100)
}.thatsFilledWith(Color(0, 11, 82))
.thatsStrokeColored(Color(0, 11, 82))

def dog= picStack(
shape1
.withFlippedX
.thatsRotated(45)
.thatsTranslated(140,0),

shape2
.thatsRotated(45)
.thatsTranslated(-75,-70),

shape3
.thatsRotated(45)
.thatsTranslated(140, 0),

shape4
.thatsRotated(-45)
.thatsTranslated(-5, -72),

shape5
.thatsRotated(135)
.thatsTranslated(140, -142),

shape6
.withFlippedX
.thatsRotated(45)
.thatsTranslated(-75,100),

shape7
.thatsRotated(-135)
.thatsTranslated(-218, 48)
)

dog.thatsScaled(0.3).thatsTranslated(-200, -100).draw
right
hop(150)
left(180)
left()
hop(80)
right()
hop(-20)
setPenColor(red)
write("PERCIANA")
hop(-40)
setPenColor(orange)
write("SALCETE")
hop(-50)

setPenColor(black)
hop(-20)
right(360,40)
right()
hop(10)
left()
hop(12)
setFillColor(black)
right(360,5)
right()
hop(50)
left()
setFillColor(black)
right(360,5)
right(180)
hop(20)
right(180,20)