DrawSquare/ziptitap
DrawSquare/kv00msu
f1def squares(w, h, *tuples):f1def squares(w, h, *tuples):
2    n = len(tuples)2    n = len(tuples)
n3    A = [['.'] * w for i in range(h)]n3    a = [['.'] * w for i in range(h)]
4    t = 04    t = 0
5    for t in range(n):5    for t in range(n):
n6        X = tuples[t][0]n6        x = tuples[t][0]
7        Y = tuples[t][1]7        y = tuples[t][1]
8        s = tuples[t][2]8        s = tuples[t][2]
9        c = tuples[t][3]9        c = tuples[t][3]
10        for k in range(s):10        for k in range(s):
11            for l in range(s):11            for l in range(s):
n12                A[Y + k][X + l] = cn12                a[y + k][x + l] = c
13    for i in range(h):13    for i in range(h):
14        for j in range(w):14        for j in range(w):
t15            (print(A[i][j], end=''),)t15            print(a[i][j], end='')
16        print()16        print()
17import sys17import sys
18exec(sys.stdin.read(), globals())18exec(sys.stdin.read(), globals())
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op