The stones in the house, the house alone

Where the stones came to restDrawn as: a curling sheet, 45.72 by 4.75 metres, with a house at each end (the 12-, 8- and 4-foot circles round the button), the tee, back, hog and centre lines and the hacks. Data: Heat map of 115 Stones. Stones in 49 cells, from 1 to 8. Highest: -0.8, 0 (8), 0.8, 0.8 (6), -0.8, -0.9 (6).Heat map of 115 StonesStones in 49 cells, from 1 to 8. Highest: -0.8, 0 (8), 0.8, 0.8 (6), -0.8, -0.9 (6).Legend: StonesStones2468

The picture above was drawn when the docs were built. The script below draws it again with the published package.

import { curlingHeat } from "@johnmorrisdotca/kyogijo-stadiums/charts";

const luck = (n) => {
  const v = Math.sin(n * 12.9898) * 43758.5453;
  return v - Math.floor(v);
};
const bell = (n) => luck(n) + luck(n + 1) + luck(n + 2) - 1.5;
const stones = Array.from({ length: 240 }, (_, i) => {
  const inHouse = luck(i * 7) < 0.45;
  return { x: bell(i * 5) * (inHouse ? 3 : 2.5), y: inHouse ? bell(i * 11) * 3 : -8 - 9 * luck(i * 13), team: i % 2 ? "home" : "away" };
});
const svg = curlingHeat(stones, { only: "house", show: "house", cell: 0.8 }).draw();

This page imports the package from jsDelivr (major version 0), which serves only versions that have been published to npm. A feature added after the last release is not in it: the page then keeps the picture above and says why. The docs were built from version 0.6.1.