Code Sketch


Table-11-20-Chart
By: Nitin Mishra
Category: Art
clear()
setSpeed(fast)
setPenColor(black)
setPenThickness(3)
setPosition(-260, 200)
setFillColor(darkGray)
setPenFont(Font("Podkova SemiBold", 22))

repeatFor(rangeTo(11, 20)) { e =>
    repeatFor(rangeTo(1, 10)) { counter =>
        repeat(4) {
            forward(50)
            right()
        }
        savePosHe()
        hop(36)
        right()
        hop(8)
        left()
        setPenColor(cm.gold)
        write(counter * e)
        restorePosHe()
        setPenColor(black)
        hop(-50)
    }
    hop(10 * 50)
    right()
    hop(50)
    left()

}
setPosition(-120, 290)
write("Table 11 to 20 Chart")
invisible()