Code Sketch


Episode 6: Super Six champion's trip to the beach!! Using radial gradient to build Sun
By: Clinton J. Fernandes
Category: Programming
//CLINTON CODE
clear()

setSpeed(fast)
setBackground(sunBackground)

def sky = Color(155, 207, 242)

def sunBackground = cm.radialMultipleGradient(
    -350, 250,100,
    Seq(0.40,0.70),
    Seq(yellow,sky), 
    false)

//Boat
setPosition(0,0)
setPenColor(black)
setFillColor(black)
right()
forward(250)
left(30)
forward(80)
left(150)
forward(350)
left(125)
forward(50)
left(145)