Created
May 8, 2020 14:39
-
-
Save LettError/9ccc7d7137c0a0b61fd98411fd10655b to your computer and use it in GitHub Desktop.
Generate a background for Teams with drawbot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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