# Union Jack Python NumWorks # https://chatgpt.com/share/23566817-8746-4be7-b372-0f02a49dbeb8 from kandinsky import fill_rect, draw_string from turtle import * # Color settings blue = (1,33,105) red = (200,16,46) white = (255,255,255) # Turtle settings hideturtle() fill_rect(0,0,320,192,blue) # [(thickness,x,y,angle,length,color)] union = [(38,-165,114,-31,500,white),(38,+165,114,211,500,white), (13,-165,106,-31,180,red),(13,26,7,-31,180,red), (13,-11,1,211,180,red),(13,12,30,31,180,red)] for size,x,y,angle,length,col in union: pensize(size) color(col) penup() goto(x,y) pendown() setheading(angle) forward(length) fill_rect(128,0,64,192,white) fill_rect(0,64,320,64,white) fill_rect(141,0,38,192,red) fill_rect(0,77,320,38,red) fill_rect(0,192,320,30,white) draw_string("Union Jack, ,", 20, 200) draw_string("NumWorks", 140, 200, (255,183,52)) draw_string("cent20", 240, 200, (148,113,222))