from drawings import preamble, postamble, draw_cropped_square, draw_tetromino if __name__ == '__main__': preamble() draw_cropped_square(0, 2, 7) tetrominos = [ (0.5, 2.5, 3), (1.5, 0.5, 2), (7.5, 1.5, 0), (7.5, 2.5, 2), ] for x, y, t in tetrominos: draw_tetromino(x, y, t) ghost_tetrominos = [ (3.5, 1.5, 0), (5.5, 0.5, 2), (8.5, 4.5, 1), (7.5, 6.5, 3), ] for x, y, t in ghost_tetrominos: draw_tetromino(x, y, t, ['dashed']) postamble()
from drawings import preamble, postamble, draw_cropped_square, draw_tetromino if __name__ == '__main__': preamble() draw_cropped_square(2, 2, 9) tetrominos = [ (1.5, 9.5, 1), (0.5, 3.5, 3), (2.5, 2.5, 2), (2.5, 1.5, 0), (8.5, 0.5, 2), (10.5, 1.5, 1), ] for x, y, t in tetrominos: draw_tetromino(x, y, t) ghost_tetrominos = [ (0.5, 7.5, 3), (1.5, 5.5, 1), (4.5, 0.5, 2), (6.5, 1.5, 0), ] for x, y, t in ghost_tetrominos: draw_tetromino(x, y, t, ['dashed']) postamble()
from drawings import preamble, postamble, draw_cropped_square, draw_tetromino, draw_square if __name__ == '__main__': preamble() draw_cropped_square(0, 0, 5) tetrominos = [(0.5, 3.5, 3), (2.5, 4.5, 0), (2.5, 1.5, 1), (3.5, 1.5, 3), (4.5, 3.5, 1)] for x, y, t in tetrominos: draw_tetromino(x, y, t) draw_square(1, 2, extras=['pattern = north east lines']) postamble()
from drawings import preamble, postamble, draw_cropped_square if __name__ == '__main__': preamble() draw_cropped_square(0, 0, 5) draw_cropped_square(6, 0, 7) draw_cropped_square(14, 0, 9) postamble()