Using the Turtle module to draw a random-color frame with a brown backing.
# 2021-12-13 ews from math import * from turtle import * from random import * # random function def rr(): r=randint(0,4)*64+1 r=float(r) return r # draw function # 4 steps per color change def dr(x): for i in range(x): color(rr(),rr(),rr()) forward(4) # draw pensize(3) penup() goto(-120,100) setheading(0) pendown() dr(60) right(90) dr(50) right(90) dr(60) right(90) dr(50) color('brown') goto(120,-100) penup() goto(-120,-100) pendown() goto(120,100) penup() goto(-80,67) setheading(0) pendown() goto(80,67) penup() goto(-40,33) setheading(0) pendown() goto(40,33) penup() goto(-80,-67) setheading(0) pendown() goto(80,-67) penup() goto(-40,-33) setheading(0) pendown() goto(40,-33) penup() goto(0,0) setheading(0)