-- polygons.lua-- Author: Abhishek Mishra-- Date: 15/01/2022---- Draws a polygon--localt=torrequire'picoturtle'.new()t:canvas_size(512,512)t:reset()-- a simple turtle program to print a polygonfunctionpoly(num,side,angle)fori=1,num,1dot:forward(side)t:right(angle)endend-- draw a hexagon in redt:penwidth(2)t:pendown()t:pencolor('red')poly(6,50,60)-- move up 100t:penup()t:forward(-100)t:right(90)-- draw a pentagon in bluet:pendown()t:pencolor('blue')poly(5,50,72)