Code Sketch


Ganesh code by Sanvi S Talauliker
By: Sanvi S Talauliker
Category: Art
cleari()
setSpeed(fast)
setPenColor(black)
setPenThickness(3)

right(204)
repeat(18) {
forward(10)
right(9)
}

right(-5)
forward(58)
repeat(18) {
forward(2)
right(8)
}
moveTo(-98, 34)

right(180)
forward(64)
repeat(18) {
forward(2)
right(8)
}
right(37)
forward(74)

right(180)
forward(74)
repeat(18) {
forward(2)
right(8)
}
right(37)
forward(82)

right(180)
forward(61)
repeat(18) {
forward(2)
right(8)
}
right(37)
forward(74)

right(140)
repeat(18) {
forward(-1)
right(-6)
}

hop(1)
right(-4)
repeat(18) {
forward(-1.5)
right(-4)
}

right(178)
repeat(18) {
forward(1.7)
right(5)
}
right(81)
repeat(18) {
forward(5)
right(1)
right(4)
}

right(498)
repeat(23) {
forward(-12)
right(-10)
}

right(-20)
repeat(18) {
forward(1)
right(5)
}

right(20)
repeat(18) {
forward(-1)
right(-5)
}
right(-180)
repeat(18) {
forward(-1)
right(-7)
}
right(243)
repeat(18) {
forward(-1)
right(7)
}

right(-434)
repeat(18) {
forward(-1)
right(-6)
}
right(286)
repeat(18) {
forward(1)
right(-3)
}
dot(3)
right(-621)
repeat(18) {
forward(-1)
right(3)
}
right(-646)
repeat(18) {
forward(6)
right(12)
}
right(744)
repeat(18) {
forward(2.2)
right(3)
}
right(-176)
repeat(18) {
forward(-07)
right(-5)
}

right(14)
setFillColor(orange)
repeat(18){
    forward(-5)
    right(-2)
}
right(-74)
repeat(18){
    forward(-5)
    right(-2)
}
repeat(18){
    forward(-2)
    right(-3)
}
right(107)
forward(101)
right(180)
forward(101)

setPenColor(black)
setFillColor(Color(255, 255, 255, 0))

right(70)
forward(15)
hop(20)
forward(11)
right(180)
repeat(18){
    forward(-3.7)
    right(-4)
}
right(75)
repeat(18){
    forward(1.5)
    right(4)
}
right(-109)
hop(89)
right(90)
forward(11)

right(-97)
hop(112)
right(-98)
repeat(18){
    forward(3.7)
    right(4)
}
right(-63)
repeat(18){
    forward(-3)
    right(-1.6)
}
right(188)
repeat(18){
    forward(3.7)
    right(4)
}
hop(24)
right(50)
repeat(18){
    forward(2.1)
    right(4)
}
jumpTo(28, 93)
right(55)
repeat(18){
    forward(2)
    right(2)
}
right(99)
repeat(18){
    forward(2.7)
    right(6)
}
lineTo(28.524023, 94)

setFillColor(Color(106, 38,38))

jumpTo(33.16, 96.51)
repeat(38){
    forward(-1)
    right(-7)
}

setFillColor(Color(255, 255, 255, 0))

jumpTo(15, 101)
right(-80)
repeat(18){
    forward(3)
    right(5)
}
jumpTo(12, 28)
right(220)
repeat(18){
    forward(-2.5)
    right(-7)
}
right(690)
repeat(18){
    forward(3.9)
    right(10)
}

setPenColor(red)

right(3)
jumpTo(-91, -23)
right(90)
forward
left(90)
forward(50)
right(90)
forward
forward(-25)
right(-90)
forward(-25)
right(90)
forward
right(90)
forward
forward(-25)
right(90)
forward
forward
right(90)
forward

jumpTo(-271, -140)
setPenColor(Color(102, 102, 102))
setPenFontSize(50)
write("Happy Ganesh Chaturthi")
setPenColor(Color(51, 51, 51))
setPenFontSize(51)
write("Happy Ganesh Chaturthi")
jumpTo(-301, 200)
setPenFontSize(17)
write("Sanvi S Talauliker")