Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Generate a background for Teams with drawbot
import os
from os.path import expanduser
home = expanduser("~")
backgroundFolder = os.path.join(home, "Library/Application Support/Microsoft/Teams/Backgrounds/Uploads")
size(1920, 1080)
s = 10
sw = int(width()/s)
sh = int(height()/s)
b = 0
for x in range(0,s):
for y in range(0,s):
rect(x*sw,y*sh,sw, sh)
b = b + 1/(s*s)
p = os.path.join(backgroundFolder, "testDrawbotBackground.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment