anvas class="input"></canvas><canvas class="output"></canvas>
</template>

<script>
distill.register("figure-style", function() {
  var root = d3.select(this);
  root.select(".redraw").on("click", function() { redraw(); })
  root.select(".reset").on("click", function() { resetModel(); })

  var xScale = d3.scaleLinear()
      .domain([0, 100])
      .range([100, 900]);

  var yScale = d3.scaleLinear()
      .domain([0, 100])
      .range([200, 1000]);

  var x = 0, y = 0, penState = 0, userCoordinates;

  v