#!/usr/bin/env bash
set -ex

./splitcrop -x $1 -y $1 $2 corners.png

./position -d horizontal corners_bottomright.png corners_bottomleft.png bottom.png

./position -d horizontal corners_topright.png corners_topleft.png top.png

./position -d vertical bottom.png top.png result-grid.png
