<canvas width="600" height="450"></canvas>
import Legra from 'https://unpkg.com/legra?module'

const ctx = document.querySelector('canvas').getContext('2d');
const legra = new Legra(ctx, 20);

legra.linearPath([
  [3, 3],
  [10, 3],
  [7, 10]
]);
legra.linearPath([
  [6, 1],
  [3, 10]
]);

legra.linearPath([
  [18, 1],
  [15, 10]
]);

legra.linearPath([
  [16, 1],
  [20, 1]
]);

legra.linearPath([
  [14, 5],
  [21, 5]
]);


legra.linearPath([
  [2, 16],
  [4, 16]
]);

legra.linearPath([
  [1, 13],
  [1, 20]
]);

legra.linearPath([
  [1, 20],
  [7, 20]
]);

legra.linearPath([
  [6, 13],
  [6, 14]
]);

legra.linearPath([
  [8, 13],
  [8, 14]
]);

legra.linearPath([
  [13, 13],
  [13, 20]
]);

legra.linearPath([
  [13, 15],
  [18, 18]
]);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.