"""Rasterize the simple orbital mark for the taskbar and executable icon.""" from pathlib import Path from PIL import Image, ImageDraw out=Path(__file__).resolve().parent.parent/'src/AstroFrame.Desktop/Assets' out.mkdir(parents=True,exist_ok=True) im=Image.new('RGBA',(256,256),(0,0,0,0));d=ImageDraw.Draw(im) d.rounded_rectangle((8,8,248,248),radius=54,fill='#101925') d.ellipse((49,49,207,207),outline='#6D8DAB',width=7) d.line((35,192,221,64),fill='#A0BEDD',width=9) d.polygon([(128,70),(141,115),(186,128),(141,141),(128,186),(115,141),(70,128),(115,115)],fill='#E1E7EF') d.ellipse((194,56,219,81),fill='#83CDB8') im.save(out/'astroframe.ico',sizes=[(16,16),(24,24),(32,32),(48,48),(64,64),(128,128),(256,256)]) im.resize((64,64),Image.Resampling.LANCZOS).save(out/'astroframe.png')