recursion recursion in computer graphics recursion can be applied to lots of different problems including sortingsearchingdrawing picturesetc the program given in sect draws spiral on the screen as shown in fig recursive spiral import turtle def drawspiral(tlengthcolorcolorbase)#color is bit value that is changing bit #each time for nice color effect if length = return add ^ to the old color modulo ^ the modulo ^ prevents the color from getting too big newcolor (int(color[ :], ** )%( ** find the color base integer value base int(colorbase[ :], now if the new color is less than the base add the base modulo ^ if newcolor basenewcolor (newcolor base)%( ** let newcolor be the hex string after conversion newcolor hex(newcolor)[ : add pound sign and zeroes to the front so it is characters long plus the pound sign for proper color string newcolor "#"+(" "*( -len(newcolor)))+newcolor color(newcolort forward(lengtht left( drawspiral(tlength- newcolorcolorbase def main() turtle turtle(screen getscreen( speed( penup( goto(- ,- pendown( drawspiral( "# ""#ff ff" screen exitonclick( this copy belongs to 'acha