Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LettError/9ccc7d7137c0a0b61fd98411fd10655b to your computer and use it in GitHub Desktop.
Save LettError/9ccc7d7137c0a0b61fd98411fd10655b to your computer and use it in GitHub Desktop.
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):
fill(1-b,random()*2,b)
rect(x*sw,y*sh,sw, sh)
b = b + 1/(s*s)
p = os.path.join(backgroundFolder, "testDrawbotBackground.png")
saveImage(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment