@blorkfield/overlay-core 0.5.7 → 0.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2499,6 +2499,7 @@ var OverlayScene = class {
2499
2499
  const baseTags = config.tags ?? [];
2500
2500
  const isStatic = !baseTags.includes("falling");
2501
2501
  const fillColor = config.fillColor ?? "#ffffff";
2502
+ const fillColors = config.fillColors;
2502
2503
  const lineHeight = config.lineHeight ?? fontSize * 1.2;
2503
2504
  const letterIds = [];
2504
2505
  const letterMap = /* @__PURE__ */ new Map();
@@ -2612,6 +2613,7 @@ var OverlayScene = class {
2612
2613
  }
2613
2614
  const shadow = config.shadow ? { opacity: config.shadow.opacity ?? 0.3 } : void 0;
2614
2615
  const clicksRemaining = config.clickToFall?.clicks;
2616
+ const charFillColor = fillColors?.[globalCharIndex] ?? fillColor;
2615
2617
  const entry = {
2616
2618
  id,
2617
2619
  body,
@@ -2622,7 +2624,7 @@ var OverlayScene = class {
2622
2624
  char,
2623
2625
  fontSize,
2624
2626
  fontFamily,
2625
- fillColor,
2627
+ fillColor: charFillColor,
2626
2628
  offsetX,
2627
2629
  offsetY
2628
2630
  },