-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbackgrounds.py
52 lines (47 loc) · 1.49 KB
/
backgrounds.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from helpers import make_bgfg
from n6 import n6_circles
from tiler import multiscale_truchet
DIR = "~/wallpaper/tru6/1680"
NIMG = 30
for i in range(NIMG):
multiscale_truchet(
tiles=n6_circles, width=1680, height=1050, tilew=200, nlayers=3,
chance=.4,
seed=i,
**make_bgfg(i/NIMG, (.55, .45), .45),
format="png", output=f"{DIR}/bg_{i:02d}.png",
)
DIR = "~/wallpaper/tru6/1920"
NIMG = 15
for i in range(NIMG):
multiscale_truchet(
tiles=n6_circles, width=1920, height=1080, tilew=200, nlayers=3,
chance=.4,
seed=i,
**make_bgfg(i/NIMG, (.55, .45), .45),
format="png", output=f"{DIR}/bg_{i:02d}.png",
)
DIR = "~/wallpaper/tru6/2872"
for i in range(NIMG):
multiscale_truchet(
tiles=n6_circles, width=2872, height=5108, tilew=300, nlayers=3,
chance=.4, bg="#335495", fg="#243b6a", seed=i,
format="png", output=f"{DIR}/bg_{i:02d}.png",
)
DIR = "~/wallpaper/tru6/1536"
for i in range(NIMG):
multiscale_truchet(
tiles=n6_circles, width=1536, height=960, tilew=200, nlayers=3,
chance=.4, bg="#335495", fg="#243b6a", seed=i*3,
format="png", output=f"{DIR}/bg_{i:02d}.png",
)
DIR = "~/wallpaper/tru6/1360"
NIMG = 120
for i in range(NIMG):
multiscale_truchet(
tiles=n6_circles, width=1360, height=768, tilew=150, nlayers=3,
chance=.4,
seed=i*10,
**make_bgfg(i/NIMG, (.55, .45), .45),
format="png", output=f"{DIR}/bg_{i:03d}.png",
)