 CanvasKit.BLUE, CanvasKit.YELLOW];
    for (const rect of rects) {
      rectPaint.setColor(colors.shift() || CanvasKit.RED);
      canvas.drawRect(rect, rectPaint);
    }

    canvas.drawParagraph(paragraph, 0, 0);

    canvas.drawLine(wrapTo, 0, wrapTo, 400, fontPaint);
  }

  const SOFT = 0;
  const HARD = 1;

  function getLineBreaks(text) {
    const breaks = [0, SOFT];

    const iterator = new Intl.v8BreakIterator(['en'], {type: 'line'});
    iterator.adoptText(text);
    iterator.first();

    whil