#! /bin/sh

cd "$(dirname "$(realpath "$0")")"
make

rm -f *.png
for circuit in adder odometer spiral; do
    ./cellular-circuit-simulation "cellular-circuit-simulation_$circuit.circuit" --ppm \
        | convert - -sample 1000% "cellular-circuit-simulation_$circuit.png"
done
