Kyogijo Stadiums競技場

Guides, the reference, a gallery of every picture it can draw, and how it compares: the pages are made from the package's own files when the site is built.

About the name

The pages are in English; this contents, the search and the buttons are in Japanese.

Gallery: the situation of a game

Hockey's skaters and shootout, baseball's runners, outs and count, and football's down, distance and drives, drawn on the surface, in the badge and in the compact card. The teams are real countries.

37 pictures, each drawn by the build from the code under it, which the Copy button copies. They are drawn as they come near the screen. Open in a page loads the published package from jsDelivr, which serves only released versions.

Hockey: the strength, the empty net and the shootout#

A pill says the strength (5v4 PP), the empty net (EN), a delayed penalty and the clock; the attacking zone is tinted in the attacking team's colour. A shootout is a strip of dots across centre ice: a goal filled, a miss hollow, and the rounds after the third apart, as sudden death.

A power play, 5 against 4

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

const svg = drawKyogijo({
  sport: "nhl",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" },
  status: "live",
  situation: { awaySkaters: 5, homeSkaters: 4, clock: "1:42" },
});

The goalkeeper pulled, the net ringed

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

const svg = drawKyogijo({
  sport: "nhl",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" },
  status: "live",
  situation: { awaySkaters: 6, homeSkaters: 5, emptyNet: "away" },
});

A delayed penalty

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

const svg = drawKyogijo({
  sport: "nhl",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" },
  status: "live",
  situation: { delayedPenalty: "home" },
});

Four against four

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

const svg = drawKyogijo({
  sport: "nhl",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" },
  status: "live",
  situation: { awaySkaters: 4, homeSkaters: 4 },
});

A shootout into sudden death

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

const svg = drawKyogijo({
  sport: "nhl",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" },
  status: "final-so",
  situation: {
    shootout: { rounds: [[true, false], [true, true], [false, true], [false, false], [true, false]] },
  },
});

A power play, tall

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

const svg = drawKyogijo({
  sport: "nhl",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" },
  status: "live",
  orientation: "portrait",
  situation: { awaySkaters: 5, homeSkaters: 4, clock: "1:42" },
});

A power play on the rink of 2000-01

The blue lines are 73 feet from the end boards, the goal lines 13, and there is no trapezoid.

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

const svg = drawKyogijo({
  sport: "nhl",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" },
  status: "live",
  year: 2000,
  situation: { awaySkaters: 5, homeSkaters: 4, clock: "1:42" },
});

Cropped to the offensive zone

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

const svg = drawKyogijo({
  sport: "nhl",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" },
  status: "live",
  range: "offensive-zone",
  situation: { awaySkaters: 5, homeSkaters: 4, clock: "1:42" },
});

The Olympic rink, 60 by 26 m

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

const svg = drawKyogijo({
  sport: "nhl",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" },
  status: "live",
  league: "olympic",
  situation: { awaySkaters: 6, homeSkaters: 5, emptyNet: "away" },
});

The badge

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

const svg = drawKyogijo({
  sport: "nhl",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" },
  status: "P3 1:12",
  size: "badge",
  situation: { awaySkaters: 5, homeSkaters: 4, clock: "1:42" },
});

The compact card

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

const svg = drawKyogijo({
  sport: "nhl",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" },
  status: "P3 1:12",
  size: "compact",
  situation: { awaySkaters: 5, homeSkaters: 4, clock: "1:42" },
});

Baseball: the bases, the outs and the count#

The occupied bases are lit on the park's diamond, and a scorebug stands behind home plate: the diamond with its runners, the outs, the inning with an arrow for its half, and the count. In the badge and the compact card the scorebug takes the place of the picture of the field.

Bases loaded, two out, a full count

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

const svg = drawKyogijo({
  sport: "mlb",
  away: { name: "USA", abbr: "USA", score: 4, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 4, color: "#d52b1e" },
  status: "Top 7",
  situation: { bases: [true, true, true], outs: 2, inning: 7, half: "top", balls: 3, strikes: 2 },
});

Runners on first and third

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

const svg = drawKyogijo({
  sport: "mlb",
  away: { name: "USA", abbr: "USA", score: 4, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 4, color: "#d52b1e" },
  status: "Bottom 3",
  situation: { bases: [true, false, true], outs: 1, inning: 3, half: "bottom", balls: 1, strikes: 1 },
});

Nobody on, nobody out

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

const svg = drawKyogijo({
  sport: "mlb",
  away: { name: "USA", abbr: "USA", score: 4, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 4, color: "#d52b1e" },
  status: "Top 1",
  situation: { bases: [false, false, false], outs: 0, inning: 1, half: "top", balls: 0, strikes: 0 },
});

At Fenway Park

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

const svg = drawKyogijo({
  sport: "mlb",
  away: { name: "USA", abbr: "USA", score: 4, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 4, color: "#d52b1e" },
  status: "Top 7",
  park: "fenway-park",
  situation: { bases: [true, true, true], outs: 2, inning: 7, half: "top", balls: 3, strikes: 2 },
});

Softball

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

const svg = drawKyogijo({
  sport: "mlb",
  away: { name: "USA", abbr: "USA", score: 4, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 4, color: "#d52b1e" },
  status: "Top 7",
  league: "fastpitch",
  situation: { bases: [true, true, true], outs: 2, inning: 7, half: "top", balls: 3, strikes: 2 },
});

At Koshien

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

const svg = drawKyogijo({
  sport: "mlb",
  away: { name: "USA", abbr: "USA", score: 4, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 4, color: "#d52b1e" },
  status: "Top 7",
  park: "hanshin-koshien-stadium",
  situation: { bases: [true, true, true], outs: 2, inning: 7, half: "top", balls: 3, strikes: 2 },
});

Cropped to the infield

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

const svg = drawKyogijo({
  sport: "mlb",
  away: { name: "USA", abbr: "USA", score: 4, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 4, color: "#d52b1e" },
  status: "Top 7",
  range: "infield",
  situation: { bases: [true, true, true], outs: 2, inning: 7, half: "top", balls: 3, strikes: 2 },
});

The badge

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

const svg = drawKyogijo({
  sport: "mlb",
  away: { name: "USA", abbr: "USA", score: 4, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 4, color: "#d52b1e" },
  status: "Top 7",
  size: "badge",
  situation: { bases: [true, true, true], outs: 2, inning: 7, half: "top", balls: 3, strikes: 2 },
});

The compact card

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

const svg = drawKyogijo({
  sport: "mlb",
  away: { name: "USA", abbr: "USA", score: 4, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 4, color: "#d52b1e" },
  status: "Top 7",
  size: "compact",
  situation: { bases: [true, true, true], outs: 2, inning: 7, half: "top", balls: 3, strikes: 2 },
});

Football: the line of scrimmage, the first down and the drives#

The line of scrimmage is blue and the first-down line yellow, the red zone is tinted, and a tag says the down and distance and the yard line. drive draws a drive chart: an arrow for each drive, in a lane of its own, with how it ended. The CFL's field is 110 yards with end zones of 20, and a team has three downs.

Third and 7 in the red zone

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

const svg = drawKyogijo({
  sport: "nfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "live",
  situation: { ballOn: 88, toGo: 7, down: 3, possession: "away" },
});

With a drive chart

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

const svg = drawKyogijo({
  sport: "nfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "live",
  situation: {
    ballOn: 88,
    toGo: 7,
    down: 3,
    possession: "away",
    drive: [
      { from: 25, to: 48, result: "punt" },
      { from: 30, to: 100, result: "touchdown" },
      { from: 20, to: 62, result: "field-goal" },
      { team: "home", from: 25, to: 40, result: "interception" },
    ],
  },
});

First and goal

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

const svg = drawKyogijo({
  sport: "nfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "live",
  situation: { ballOn: 96, toGo: "goal", down: 1, possession: "home" },
});

The CFL: third down on a field of 110 yards

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

const svg = drawKyogijo({
  sport: "cfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "live",
  situation: { ballOn: 98, toGo: 12, down: 3, possession: "home" },
});

The IFAF's field

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

const svg = drawKyogijo({
  sport: "ifaf",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "live",
  situation: { ballOn: 88, toGo: 7, down: 3, possession: "away" },
});

The NCAA's field

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

const svg = drawKyogijo({
  sport: "nfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "live",
  league: "ncaa",
  situation: { ballOn: 88, toGo: 7, down: 3, possession: "away" },
});

The field of 1980

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

const svg = drawKyogijo({
  sport: "nfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "live",
  year: 1980,
  situation: { ballOn: 88, toGo: 7, down: 3, possession: "away" },
});

Tall

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

const svg = drawKyogijo({
  sport: "nfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "live",
  orientation: "portrait",
  situation: { ballOn: 88, toGo: 7, down: 3, possession: "away" },
});

Cropped to the red zone

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

const svg = drawKyogijo({
  sport: "nfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "live",
  range: "red-zone",
  situation: {
    ballOn: 88,
    toGo: 7,
    down: 3,
    possession: "away",
    drive: [{ from: 30, to: 100, result: "touchdown" }, { from: 20, to: 62, result: "field-goal" }],
  },
});

Under a night look

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

const svg = drawKyogijo({
  sport: "nfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "live",
  look: "night",
  situation: { ballOn: 88, toGo: 7, down: 3, possession: "away" },
});

The badge

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

const svg = drawKyogijo({
  sport: "nfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "Q3 4:21",
  size: "badge",
  situation: { ballOn: 88, toGo: 7, down: 3, possession: "away" },
});

The compact card

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

const svg = drawKyogijo({
  sport: "nfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "Q3 4:21",
  size: "compact",
  situation: { ballOn: 88, toGo: 7, down: 3, possession: "away" },
});

Dark, and in Japanese#

The pill, the scorebug and the tag take the score panel's colours, so they follow the theme; the words of the description follow language.

Hockey, dark

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

const svg = drawKyogijo({
  sport: "nhl",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" },
  status: "live",
  theme: "dark",
  situation: { awaySkaters: 5, homeSkaters: 4, clock: "1:42" },
});

Baseball, dark

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

const svg = drawKyogijo({
  sport: "mlb",
  away: { name: "USA", abbr: "USA", score: 4, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 4, color: "#d52b1e" },
  status: "Top 7",
  theme: "dark",
  situation: { bases: [true, true, true], outs: 2, inning: 7, half: "top", balls: 3, strikes: 2 },
});

Football, dark

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

const svg = drawKyogijo({
  sport: "nfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "live",
  theme: "dark",
  situation: {
    ballOn: 88,
    toGo: 7,
    down: 3,
    possession: "away",
    drive: [
      { from: 25, to: 48, result: "punt" },
      { from: 30, to: 100, result: "touchdown" },
      { from: 20, to: 62, result: "field-goal" },
      { team: "home", from: 25, to: 40, result: "interception" },
    ],
  },
});

The badge in Japanese

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

const svg = drawKyogijo({
  sport: "nfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "Q3 4:21",
  size: "badge",
  language: "ja",
  situation: { ballOn: 88, toGo: 7, down: 3, possession: "away" },
});

The field in Japanese

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

const svg = drawKyogijo({
  sport: "nfl",
  away: { name: "Mexico", abbr: "MEX", score: 27, color: "#006847" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "live",
  language: "ja",
  situation: { ballOn: 88, toGo: 7, down: 3, possession: "away" },
});