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: surfaces and scores

The thirty-nine surfaces bare, with a game on each, wide and tall, as a strip and as a compact card, and the court's looks. Every picture is drawn by the build from the code under it.

124 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.

Each surface, bare#

drawKyogijo with a sport and nothing else.

NFL field

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

const svg = drawKyogijo({ sport: "nfl" });

CFL field

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

const svg = drawKyogijo({ sport: "cfl" });

IFAF field

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

const svg = drawKyogijo({ sport: "ifaf" });

NHL rink

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

const svg = drawKyogijo({ sport: "nhl" });

NBA court

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

const svg = drawKyogijo({ sport: "nba" });

Soccer pitch

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

const svg = drawKyogijo({ sport: "soccer" });

Baseball field

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

const svg = drawKyogijo({ sport: "mlb" });

Curling sheet

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

const svg = drawKyogijo({ sport: "curling" });

Tennis court

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

const svg = drawKyogijo({ sport: "tennis" });

Volleyball court

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

const svg = drawKyogijo({ sport: "volleyball" });

Badminton court

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

const svg = drawKyogijo({ sport: "badminton" });

Pickleball court

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

const svg = drawKyogijo({ sport: "pickleball" });

Table tennis table

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

const svg = drawKyogijo({ sport: "tabletennis" });

Padel court

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

const svg = drawKyogijo({ sport: "padel" });

Squash court

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

const svg = drawKyogijo({ sport: "squash" });

Racquetball court

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

const svg = drawKyogijo({ sport: "racquetball" });

Sepak takraw court

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

const svg = drawKyogijo({ sport: "sepaktakraw" });

Teqball court

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

const svg = drawKyogijo({ sport: "teqball" });

Roundnet court

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

const svg = drawKyogijo({ sport: "roundnet" });

Netball court

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

const svg = drawKyogijo({ sport: "netball" });

Athletics stadium

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

const svg = drawKyogijo({ sport: "athletics" });

Skating rink

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

const svg = drawKyogijo({ sport: "skating" });

Lacrosse field

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

const svg = drawKyogijo({ sport: "lacrosse" });

Rugby field

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

const svg = drawKyogijo({ sport: "rugby" });

Australian football ground

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

const svg = drawKyogijo({ sport: "afl" });

Gaelic games field

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

const svg = drawKyogijo({ sport: "gaelic" });

Cricket ground

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

const svg = drawKyogijo({ sport: "cricket" });

Field hockey pitch

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

const svg = drawKyogijo({ sport: "fieldhockey" });

Handball court

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

const svg = drawKyogijo({ sport: "handball" });

Swimming pool

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

const svg = drawKyogijo({ sport: "swimming" });

Water polo field

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

const svg = drawKyogijo({ sport: "waterpolo" });

Diving well

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

const svg = drawKyogijo({ sport: "diving" });

Artistic swimming area

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

const svg = drawKyogijo({ sport: "artisticswimming" });

Judo competition area

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

const svg = drawKyogijo({ sport: "judo" });

Karate competition area

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

const svg = drawKyogijo({ sport: "karate" });

Kendo shiai-jo

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

const svg = drawKyogijo({ sport: "kendo" });

Sumo dohyō

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

const svg = drawKyogijo({ sport: "sumo" });

Kyūdōjō

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

const svg = drawKyogijo({ sport: "kyudo" });

Dojo

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

const svg = drawKyogijo({ sport: "dojo" });

A game on each surface#

The teams on their sides and the score in the middle.

NFL field, with a score

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: "final",
  competition: "Championship Game",
});

CFL field, with a score

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

const svg = drawKyogijo({
  sport: "cfl",
  away: { name: "Canada", abbr: "CAN", score: 27, color: "#d52b1e" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "final",
  competition: "Grey Cup",
});

IFAF field, with a score

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

const svg = drawKyogijo({
  sport: "ifaf",
  away: { name: "Japan", abbr: "JPN", score: 27, color: "#bc002d" },
  home: { name: "Mexico", abbr: "MEX", score: 24, color: "#006847" },
  status: "final",
  competition: "World Championship",
});

NHL rink, with a score

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-ot",
  competition: "Cup Final, Game 7",
});

NBA court, with a score

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

const svg = drawKyogijo({
  sport: "nba",
  away: { name: "Australia", abbr: "AUS", score: 108, color: "#00843d" },
  home: { name: "Japan", abbr: "JPN", score: 112, color: "#bc002d" },
  status: "final",
  competition: "Finals, Game 6",
});

Soccer pitch, with a score

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

const svg = drawKyogijo({
  sport: "soccer",
  away: { name: "Brazil", abbr: "BRA", score: 2, color: "#009739", penalties: 4 },
  home: { name: "England", abbr: "ENG", score: 2, color: "#c8102e", penalties: 2 },
  status: "final-pens",
  competition: "Cup Final",
});

Baseball field, with a score

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

const svg = drawKyogijo({
  sport: "mlb",
  away: { name: "Japan", abbr: "JPN", score: 4, color: "#bc002d" },
  home: { name: "USA", abbr: "USA", score: 6, color: "#1c3f7a" },
  status: "Bottom 9th",
  competition: "Game 5",
  park: "fenway-park",
});

Curling sheet, with a score

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

const svg = drawKyogijo({
  sport: "curling",
  away: {
    name: "Japan",
    abbr: "JPN",
    score: 5,
    color: "#bc002d",
    ends: [0, 1, 0, 2, 0, 0, 1, 0, 1, "X"],
  },
  home: {
    name: "Canada",
    abbr: "CAN",
    score: 4,
    color: "#d52b1e",
    hammer: true,
    ends: [1, 0, 2, 0, 1, 0, 0, 1, 0],
  },
  status: "end-10",
  competition: "Final",
});

Tennis court, with a score

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

const svg = drawKyogijo({
  sport: "tennis",
  away: {
    name: "Canada",
    abbr: "CAN",
    score: 1,
    color: "#d52b1e",
    sets: [6, 6, 2],
    tiebreaks: [5, null, null],
    points: "40",
    serving: true,
  },
  home: { name: "Japan", abbr: "JPN", score: 1, color: "#bc002d", sets: [7, 3, 3], points: "30" },
  status: "set-3",
  competition: "Final",
});

Volleyball court, with a score

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

const svg = drawKyogijo({
  sport: "volleyball",
  away: {
    name: "Japan",
    abbr: "JPN",
    score: 2,
    color: "#bc002d",
    sets: [25, 22, 25, 18],
    serving: true,
  },
  home: { name: "USA", abbr: "USA", score: 1, color: "#1c3f7a", sets: [21, 25, 20, 20] },
  status: "set-4",
  competition: "Semifinal",
});

Badminton court, with a score

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

const svg = drawKyogijo({
  sport: "badminton",
  away: { name: "Japan", abbr: "JPN", score: 1, color: "#bc002d", sets: [21, 18, 11], serving: true },
  home: { name: "Korea", abbr: "KOR", score: 1, color: "#c60c30", sets: [17, 21, 9] },
  status: "game-3",
  competition: "Final",
});

Pickleball court, with a score

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

const svg = drawKyogijo({
  sport: "pickleball",
  away: { name: "USA", abbr: "USA", score: 1, color: "#1c3f7a", sets: [11, 8, 5], serving: true },
  home: { name: "Canada", abbr: "CAN", score: 1, color: "#d52b1e", sets: [7, 11, 4] },
  status: "game-3",
  competition: "Final",
});

Table tennis table, with a score

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

const svg = drawKyogijo({
  sport: "tabletennis",
  away: { name: "Japan", abbr: "JPN", score: 3, color: "#bc002d", sets: [11, 9, 11, 7, 11] },
  home: { name: "Germany", abbr: "GER", score: 2, color: "#222222", sets: [7, 11, 8, 11, 6] },
  status: "final",
  competition: "Final",
});

Padel court, with a score

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

const svg = drawKyogijo({
  sport: "padel",
  away: {
    name: "Canada",
    abbr: "CAN",
    score: 1,
    color: "#d52b1e",
    sets: [6, 6, 2],
    tiebreaks: [5, null, null],
    points: "40",
    serving: true,
  },
  home: { name: "Japan", abbr: "JPN", score: 1, color: "#bc002d", sets: [7, 3, 3], points: "30" },
  status: "set-3",
  competition: "Final",
});

Squash court, with a score

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

const svg = drawKyogijo({
  sport: "squash",
  away: { name: "Japan", abbr: "JPN", score: 3, color: "#bc002d", sets: [11, 9, 11, 7, 11] },
  home: { name: "Germany", abbr: "GER", score: 2, color: "#222222", sets: [7, 11, 8, 11, 6] },
  status: "final",
  competition: "Final",
});

Racquetball court, with a score

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

const svg = drawKyogijo({
  sport: "racquetball",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a", sets: [11, 8, 11, 11] },
  home: { name: "Mexico", abbr: "MEX", score: 1, color: "#006847", sets: [7, 11, 9, 5] },
  status: "final",
  competition: "Final",
});

Sepak takraw court, with a score

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

const svg = drawKyogijo({
  sport: "sepaktakraw",
  away: {
    name: "Thailand",
    abbr: "THA",
    score: 2,
    color: "#2d2a4a",
    sets: [21, 17, 15],
    serving: true,
  },
  home: { name: "Malaysia", abbr: "MAS", score: 1, color: "#010066", sets: [18, 21, 12] },
  status: "final",
  competition: "Final",
});

Teqball court, with a score

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

const svg = drawKyogijo({
  sport: "teqball",
  away: { name: "Hungary", abbr: "HUN", score: 2, color: "#436f4d", sets: [12, 9, 12], serving: true },
  home: { name: "Brazil", abbr: "BRA", score: 1, color: "#009739", sets: [10, 12, 7] },
  status: "final",
  competition: "Final",
});

Roundnet court, with a score

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

const svg = drawKyogijo({
  sport: "roundnet",
  away: { name: "USA", abbr: "USA", score: 2, color: "#1c3f7a", sets: [21, 18, 21], serving: true },
  home: { name: "Canada", abbr: "CAN", score: 1, color: "#d52b1e", sets: [15, 21, 17] },
  status: "final",
  competition: "Final",
});

Netball court, with a score

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

const svg = drawKyogijo({
  sport: "netball",
  away: { name: "Australia", abbr: "AUS", score: 52, color: "#00843d" },
  home: { name: "England", abbr: "ENG", score: 49, color: "#c8102e" },
  status: "final",
  competition: "Final",
});

Athletics stadium, with a score

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

const svg = drawKyogijo({
  sport: "athletics",
  away: { name: "Japan", abbr: "JPN", score: 27, color: "#bc002d" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "final",
  competition: "Relay final",
});

Skating rink, with a score

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

const svg = drawKyogijo({
  sport: "skating",
  away: { name: "Canada", abbr: "CAN", score: 27, color: "#d52b1e" },
  home: { name: "Japan", abbr: "JPN", score: 24, color: "#bc002d" },
  status: "final",
  competition: "Team pursuit final",
});

Lacrosse field, with a score

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

const svg = drawKyogijo({
  sport: "lacrosse",
  away: { name: "Canada", abbr: "CAN", score: 27, color: "#d52b1e" },
  home: { name: "USA", abbr: "USA", score: 24, color: "#1c3f7a" },
  status: "final",
  competition: "Final",
});

Rugby field, with a score

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

const svg = drawKyogijo({
  sport: "rugby",
  away: { name: "England", abbr: "ENG", score: 27, color: "#c8102e" },
  home: { name: "France", abbr: "FRA", score: 24, color: "#0055a4" },
  status: "final",
  competition: "Final",
});

Australian football ground, with a score

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

const svg = drawKyogijo({
  sport: "afl",
  away: { name: "Australia", abbr: "AUS", color: "#00843d", goals: 10, behinds: 12 },
  home: { name: "Ireland", abbr: "IRL", color: "#169b62", goals: 9, behinds: 14 },
  status: "final",
  competition: "Grand Final",
});

Gaelic games field, with a score

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

const svg = drawKyogijo({
  sport: "gaelic",
  away: { name: "Ireland", abbr: "IRL", color: "#169b62", goals: 2, points: 14 },
  home: { name: "Australia", abbr: "AUS", color: "#00843d", goals: 1, points: 15 },
  status: "final",
  competition: "All-Ireland Final",
});

Cricket ground, with a score

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

const svg = drawKyogijo({
  sport: "cricket",
  away: {
    name: "Australia",
    abbr: "AUS",
    score: 245,
    color: "#00843d",
    wickets: 6,
    overs: "50",
    innings: [245],
  },
  home: {
    name: "England",
    abbr: "ENG",
    score: 187,
    color: "#c8102e",
    wickets: 10,
    overs: "41.2",
    innings: [187],
  },
  status: "final",
  competition: "Final",
});

Field hockey pitch, with a score

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

const svg = drawKyogijo({
  sport: "fieldhockey",
  away: { name: "Australia", abbr: "AUS", score: 27, color: "#00843d" },
  home: { name: "Germany", abbr: "GER", score: 24, color: "#222222" },
  status: "final",
  competition: "Final",
});

Handball court, with a score

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

const svg = drawKyogijo({
  sport: "handball",
  away: { name: "France", abbr: "FRA", score: 27, color: "#0055a4" },
  home: { name: "Japan", abbr: "JPN", score: 24, color: "#bc002d" },
  status: "final",
  competition: "Final",
});

Swimming pool, with a score

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

const svg = drawKyogijo({
  sport: "swimming",
  away: { name: "Japan", abbr: "JPN", score: 146, color: "#bc002d" },
  home: { name: "USA", abbr: "USA", score: 154, color: "#1c3f7a" },
  status: "final",
  competition: "Dual meet",
});

Water polo field, with a score

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

const svg = drawKyogijo({
  sport: "waterpolo",
  away: { name: "Italy", abbr: "ITA", score: 9, color: "#0b5cab" },
  home: { name: "Spain", abbr: "ESP", score: 11, color: "#aa151b" },
  status: "final",
  competition: "Quarter-final",
});

Diving well, with a score

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

const svg = drawKyogijo({
  sport: "diving",
  away: { name: "Japan", abbr: "JPN", score: 146, color: "#bc002d" },
  home: { name: "USA", abbr: "USA", score: 154, color: "#1c3f7a" },
  status: "final",
  competition: "Dual meet",
});

Artistic swimming area, with a score

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

const svg = drawKyogijo({
  sport: "artisticswimming",
  away: { name: "Japan", abbr: "JPN", score: 146, color: "#bc002d" },
  home: { name: "USA", abbr: "USA", score: 154, color: "#1c3f7a" },
  status: "final",
  competition: "Team event",
});

Judo competition area, with a score

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

const svg = drawKyogijo({
  sport: "judo",
  away: { name: "Japan", abbr: "JPN", color: "#bc002d", budo: { wazaari: 1, yuko: 2, shido: 1 } },
  home: { name: "France", abbr: "FRA", color: "#0055a4", budo: { wazaari: 1, shido: 2 } },
  status: "final",
  competition: "Final, 73 kg",
});

Karate competition area, with a score

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

const svg = drawKyogijo({
  sport: "karate",
  away: {
    name: "Japan",
    abbr: "JPN",
    color: "#bc002d",
    budo: { ippon: 1, wazaari: 1, senshu: true, shido: 1 },
  },
  home: { name: "Italy", abbr: "ITA", color: "#0b5cab", budo: { wazaari: 2, yuko: 1 } },
  status: "final",
  competition: "Kumite final",
});

Kendo shiai-jo, with a score

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

const svg = drawKyogijo({
  sport: "kendo",
  away: { name: "Japan", abbr: "JPN", color: "#bc002d", budo: { techniques: ["men", "kote"] } },
  home: { name: "Korea", abbr: "KOR", color: "#c60c30", budo: { techniques: ["do"] } },
  status: "final",
  competition: "Final",
});

Sumo dohyō, with a score

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

const svg = drawKyogijo({
  sport: "sumo",
  away: { name: "Japan", abbr: "JPN", score: 1, color: "#bc002d", budo: { kimarite: "yorikiri" } },
  home: { name: "Mongolia", abbr: "MGL", score: 0, color: "#c4272f" },
  status: "final",
  competition: "Day 15",
});

Kyūdōjō, with a score

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

const svg = drawKyogijo({
  sport: "kyudo",
  away: { name: "Japan", abbr: "JPN", score: 14, color: "#bc002d" },
  home: { name: "USA", abbr: "USA", score: 12, color: "#1c3f7a" },
  status: "final",
  competition: "Team final",
});

Dojo, with a score

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

const svg = drawKyogijo({
  sport: "dojo",
  away: { name: "Japan", abbr: "JPN", score: 27, color: "#bc002d" },
  home: { name: "Canada", abbr: "CAN", score: 24, color: "#d52b1e" },
  status: "final",
  competition: "Open day",
});

Wide and tall#

orientation: "portrait" turns the surface a quarter and keeps every word upright.

NHL rink, 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: "final-ot",
  competition: "Cup Final, Game 7",
  orientation: "portrait",
});

NFL field, 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: "final",
  competition: "Championship Game",
  orientation: "portrait",
});

NBA court, tall

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

const svg = drawKyogijo({
  sport: "nba",
  away: { name: "Australia", abbr: "AUS", score: 108, color: "#00843d" },
  home: { name: "Japan", abbr: "JPN", score: 112, color: "#bc002d" },
  status: "final",
  competition: "Finals, Game 6",
  orientation: "portrait",
});

Soccer pitch, tall

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

const svg = drawKyogijo({
  sport: "soccer",
  away: { name: "Brazil", abbr: "BRA", score: 2, color: "#009739", penalties: 4 },
  home: { name: "England", abbr: "ENG", score: 2, color: "#c8102e", penalties: 2 },
  status: "final-pens",
  competition: "Cup Final",
  orientation: "portrait",
});

Baseball field, tall

A ballpark is already upright, so the teams go in strips above and below it.

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

const svg = drawKyogijo({
  sport: "mlb",
  away: { name: "Japan", abbr: "JPN", score: 4, color: "#bc002d" },
  home: { name: "USA", abbr: "USA", score: 6, color: "#1c3f7a" },
  status: "Bottom 9th",
  competition: "Game 5",
  park: "fenway-park",
  orientation: "portrait",
});

Curling sheet, wide

A curling sheet lies tall unless it is asked to lie wide.

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

const svg = drawKyogijo({
  sport: "curling",
  away: {
    name: "Japan",
    abbr: "JPN",
    score: 5,
    color: "#bc002d",
    ends: [0, 1, 0, 2, 0, 0, 1, 0, 1, "X"],
  },
  home: {
    name: "Canada",
    abbr: "CAN",
    score: 4,
    color: "#d52b1e",
    hammer: true,
    ends: [1, 0, 2, 0, 1, 0, 0, 1, 0],
  },
  status: "end-10",
  competition: "Final",
  orientation: "landscape",
});

A strip for a list, and a compact card#

size: "badge" is the strip alone; size: "compact" is the surface with that strip under it.

Badge, hockey

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-ot",
  competition: "Cup Final, Game 7",
  size: "badge",
});

Badge, basketball

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

const svg = drawKyogijo({
  sport: "nba",
  away: { name: "Australia", abbr: "AUS", score: 108, color: "#00843d" },
  home: { name: "Japan", abbr: "JPN", score: 112, color: "#bc002d" },
  status: "final",
  competition: "Finals, Game 6",
  size: "badge",
});

Badge, football

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: "final",
  competition: "Championship Game",
  size: "badge",
});

Badge, baseball

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

const svg = drawKyogijo({
  sport: "mlb",
  away: { name: "Japan", abbr: "JPN", score: 4, color: "#bc002d" },
  home: { name: "USA", abbr: "USA", score: 6, color: "#1c3f7a" },
  status: "Bottom 9th",
  competition: "Game 5",
  park: "fenway-park",
  size: "badge",
});

Badge, curling

The hammer is the small stone in the corner of the team that has it.

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

const svg = drawKyogijo({
  sport: "curling",
  away: {
    name: "Japan",
    abbr: "JPN",
    score: 5,
    color: "#bc002d",
    ends: [0, 1, 0, 2, 0, 0, 1, 0, 1, "X"],
  },
  home: {
    name: "Canada",
    abbr: "CAN",
    score: 4,
    color: "#d52b1e",
    hammer: true,
    ends: [1, 0, 2, 0, 1, 0, 0, 1, 0],
  },
  status: "end-10",
  competition: "Final",
  size: "badge",
});

Compact card, basketball

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

const svg = drawKyogijo({
  sport: "nba",
  away: { name: "Australia", abbr: "AUS", score: 108, color: "#00843d" },
  home: { name: "Japan", abbr: "JPN", score: 112, color: "#bc002d" },
  status: "final",
  competition: "Finals, Game 6",
  size: "compact",
});

Compact card, hockey

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-ot",
  competition: "Cup Final, Game 7",
  size: "compact",
});

Round marks#

mark: "round" on a team, or markShape: "round" for both, clips a flag or a logo to a circle with a ring: on each side of the surface, in the badge and in the strip of a compact card. A team with no logo is its initials on its colour. The marks are a maple leaf and a sun disc drawn in the code.

Round marks on a pitch, wide

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

// Our own marks, drawn here: a maple leaf for Canada and a sun disc for Japan (never a federation's crest or logo, and no flag: a snippet cannot await Hata's flag()).
const leaf = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="#fff"/><polygon points="50,14 55,26 60,23 59,36 72,28 69,39 81,35 77,44 83,53 72,52 74,58 56,55 55,70 44,55 26,58 28,52 17,53 23,44 19,35 31,39 28,28 41,36 40,23 45,26 50,14" fill="#d52b1e"/></svg>';
const sun = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="#fff"/><circle cx="50" cy="50" r="24" fill="#bc002d"/></svg>';
const canada = { name: "Canada", abbr: "CAN", score: 2, penalties: 4, color: "#d52b1e", logo: leaf };
const japan = { name: "Japan", abbr: "JPN", score: 2, penalties: 3, color: "#bc002d", logo: sun };
const svg = drawKyogijo({ sport: "soccer", markShape: "round", away: canada, home: japan, status: "final-pens", competition: "Northern Cup final", orientation: "landscape" });

Round marks on a pitch, tall

Each mark turns with its name where the name is turned.

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

// Our own marks, drawn here: a maple leaf for Canada and a sun disc for Japan (never a federation's crest or logo, and no flag: a snippet cannot await Hata's flag()).
const leaf = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="#fff"/><polygon points="50,14 55,26 60,23 59,36 72,28 69,39 81,35 77,44 83,53 72,52 74,58 56,55 55,70 44,55 26,58 28,52 17,53 23,44 19,35 31,39 28,28 41,36 40,23 45,26 50,14" fill="#d52b1e"/></svg>';
const sun = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="#fff"/><circle cx="50" cy="50" r="24" fill="#bc002d"/></svg>';
const canada = { name: "Canada", abbr: "CAN", score: 2, penalties: 4, color: "#d52b1e", logo: leaf };
const japan = { name: "Japan", abbr: "JPN", score: 2, penalties: 3, color: "#bc002d", logo: sun };
const svg = drawKyogijo({ sport: "soccer", markShape: "round", away: canada, home: japan, status: "final-pens", competition: "Northern Cup final", orientation: "portrait" });

Round marks in a badge

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

// Our own marks, drawn here: a maple leaf for Canada and a sun disc for Japan (never a federation's crest or logo, and no flag: a snippet cannot await Hata's flag()).
const leaf = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="#fff"/><polygon points="50,14 55,26 60,23 59,36 72,28 69,39 81,35 77,44 83,53 72,52 74,58 56,55 55,70 44,55 26,58 28,52 17,53 23,44 19,35 31,39 28,28 41,36 40,23 45,26 50,14" fill="#d52b1e"/></svg>';
const sun = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="#fff"/><circle cx="50" cy="50" r="24" fill="#bc002d"/></svg>';
const canada = { name: "Canada", abbr: "CAN", score: 2, penalties: 4, color: "#d52b1e", logo: leaf };
const japan = { name: "Japan", abbr: "JPN", score: 2, penalties: 3, color: "#bc002d", logo: sun };
const svg = drawKyogijo({ sport: "soccer", markShape: "round", away: canada, home: japan, status: "final-pens", size: "badge" });

Round marks in a compact card

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

// Our own marks, drawn here: a maple leaf for Canada and a sun disc for Japan (never a federation's crest or logo, and no flag: a snippet cannot await Hata's flag()).
const leaf = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="#fff"/><polygon points="50,14 55,26 60,23 59,36 72,28 69,39 81,35 77,44 83,53 72,52 74,58 56,55 55,70 44,55 26,58 28,52 17,53 23,44 19,35 31,39 28,28 41,36 40,23 45,26 50,14" fill="#d52b1e"/></svg>';
const sun = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="#fff"/><circle cx="50" cy="50" r="24" fill="#bc002d"/></svg>';
const canada = { name: "Canada", abbr: "CAN", score: 2, penalties: 4, color: "#d52b1e", logo: leaf };
const japan = { name: "Japan", abbr: "JPN", score: 2, penalties: 3, color: "#bc002d", logo: sun };
const svg = drawKyogijo({ sport: "soccer", markShape: "round", away: canada, home: japan, status: "final-pens", size: "compact" });

No flag: the initials on the team's colour

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

const svg = drawKyogijo({
  sport: "nhl",
  markShape: "round",
  away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" },
  home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" },
  status: "final-ot",
});

The court's looks#

Five looks to start from, in COURT_THEMES; each colour of a look is an option too.

Court: maple

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

const svg = drawKyogijo({ sport: "nba", court: COURT_THEMES.maple, away: { name: "Australia", abbr: "AUS", score: 108, color: "#00843d" }, home: { name: "Japan", abbr: "JPN", score: 112, color: "#bc002d" }, status: "final" });

Court: twoTone

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

const svg = drawKyogijo({ sport: "nba", court: COURT_THEMES.twoTone, away: { name: "Australia", abbr: "AUS", score: 108, color: "#00843d" }, home: { name: "Japan", abbr: "JPN", score: 112, color: "#bc002d" }, status: "final" });

Court: night

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

const svg = drawKyogijo({ sport: "nba", court: COURT_THEMES.night, away: { name: "Australia", abbr: "AUS", score: 108, color: "#00843d" }, home: { name: "Japan", abbr: "JPN", score: 112, color: "#bc002d" }, status: "final" });

Court: tournament

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

const svg = drawKyogijo({ sport: "nba", court: COURT_THEMES.tournament, away: { name: "Australia", abbr: "AUS", score: 108, color: "#00843d" }, home: { name: "Japan", abbr: "JPN", score: 112, color: "#bc002d" }, status: "final" });

Court: sunburst

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

const svg = drawKyogijo({ sport: "nba", court: COURT_THEMES.sunburst, away: { name: "Australia", abbr: "AUS", score: 108, color: "#00843d" }, home: { name: "Japan", abbr: "JPN", score: 112, color: "#bc002d" }, status: "final" });

A realistic basketball floor#

court: { hardwood: true } lays maple boards that run the length of the court, with staggered ends, grain and tone, stained paint and border, the baskets and their shadows from above, and a satin sheen. The clean floor stays the default.

Hardwood, bare

The court's lines are the NBA's; the boards, the stain and the shadows are drawn from a seed, so the same call is always the same floor.

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

const svg = drawKyogijo({ sport: "nba", court: { hardwood: true } });

Hardwood in a club's colours

The strip behind each baseline takes the colour of the team that defends it (`leftColor` and `rightColor`, or `baselineColor`); the paint is stain, so the boards show through it.

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

const logo = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="46" fill="#10294f"/><circle cx="50" cy="50" r="38" fill="none" stroke="#f2f2f2" stroke-width="4"/><path d="M20 62Q35 30 50 50T80 38" fill="none" stroke="#f2c230" stroke-width="7" stroke-linecap="round"/></svg>';
const svg = drawKyogijo({
  sport: "nba",
  leftColor: "#1d4f91",
  rightColor: "#8a2432",
  court: {
    hardwood: true,
    apron: "#14171c",
    border: "#13233f",
    keyLeft: "#1d4f91",
    keyRight: "#8a2432",
    centreCircle: "#1d4f91",
    centreLogo: logo,
    baselineText: ["HARBOUR CITY", "PRAIRIE RIDGE"],
    sidelineText: "KYOGIJO LEAGUE",
  },
});

Hardwood, dark

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

const svg = drawKyogijo({ sport: "nba", theme: "dark", court: { hardwood: true, sidelineText: "KYOGIJO LEAGUE" } });

Hardwood, tall

The boards still run the length of the court; the baseline words read left to right and the sideline words run along their strips.

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

const svg = drawKyogijo({ sport: "nba", orientation: "portrait", court: { hardwood: true, baselineText: ["LAKEVIEW", "HARBOUR CITY"], sidelineText: "KYOGIJO LEAGUE" } });

Hardwood, FIBA

Every league of the sport takes it: the NBA, WNBA, FIBA, NCAA, NFHS and G League courts; another `seed` is another floor.

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

const svg = drawKyogijo({ sport: "nba", league: "fiba", court: { hardwood: { seed: 7 } } });

Hardwood, WNBA

Boards 3 inches wide and a lighter stain.

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

const svg = drawKyogijo({ sport: "nba", league: "wnba", court: { hardwood: { board: 3, stain: 0.6 }, key: "#4b2e83", keyLeft: "#4b2e83", keyRight: "#4b2e83", border: "#2b1a4d" } });

Hardwood, plain for a thumbnail

Under 480 pixels wide (or with `detail: "simple"`) the floor keeps its broad boards, its stain and its sheen and leaves out the seams, the grain and the soft shadows, so that a small drawing stays clean.

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

const svg = drawKyogijo({ sport: "nba", width: 320, court: { hardwood: true } });

Hardwood under a shot chart

The data layers sit over the floor, shadows and sheen as they do over the clean one.

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

const shots = Array.from({ length: 48 }, (_, i) => ({ x: 6 + ((i * 17) % 84), y: 4 + ((i * 29) % 42), outcome: i % 3 === 0 ? "goal" : "shot" }));
const svg = drawKyogijo({ sport: "nba", court: { hardwood: true }, layers: [{ kind: "points", data: shots }] });

Hardwood with a score

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

const svg = drawKyogijo({ sport: "nba", away: { name: "Australia", abbr: "AUS", score: 108, color: "#00843d" }, home: { name: "Japan", abbr: "JPN", score: 112, color: "#bc002d" }, status: "final", court: { hardwood: true } });

The stands and the crowd#

crowd: true draws the stands round a surface that has spectators and the people in them, in the home colours with the visitors at an end and the empty seats showing. The clean drawing stays the default.

Soccer in a bowl

A bowl of two tiers, the home fans in the home team's colour and the visitors in a block at one end, with a tunnel, benches and a camera platform on the bench side.

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

const svg = drawKyogijo({ sport: "soccer", leftColor: "#1d4f91", rightColor: "#b5452c", crowd: true });

Soccer in an NFL stadium

The stands keep the football field's footprint (drawn faintly over the pitch with its end zones and yard lines): the pitch is wider than the field, so its touchlines are 8.5 feet from the front rows.

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

const svg = drawKyogijo({ sport: "soccer", ground: "metlife-stadium", leftColor: "#1d4f91", rightColor: "#b5452c", crowd: true });

A ballpark

Grandstands along the foul lines and behind home plate, bleachers behind the park's own fence with a gap at the batter's eye.

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

const svg = drawKyogijo({ sport: "mlb", park: "fenway-park", leftColor: "#1d4f91", rightColor: "#b5452c", crowd: true });

An NHL arena

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

const svg = drawKyogijo({ sport: "nhl", leftColor: "#1d4f91", rightColor: "#c2410c", crowd: true });

An NBA arena

Courtside rows, a lower bowl and an upper tier, 95 percent full.

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

const svg = drawKyogijo({ sport: "nba", leftColor: "#14233f", rightColor: "#c2410c", crowd: { density: 0.95 } });

A curling hall

Two sides of seating along the sheet.

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

const svg = drawKyogijo({ sport: "curling", orientation: "landscape", crowd: true });

A card display

Blocks of the lower stands behind each goal in checks of each team's colour.

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

const svg = drawKyogijo({ sport: "soccer", leftColor: "#0f7a7a", rightColor: "#6b2d5c", crowd: { tifo: "both", tifoDesign: "checks", seed: 3 } });

A half-empty horseshoe

Three sides, open at one end; the empty seats show.

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

const svg = drawKyogijo({ sport: "rugby", crowd: { shape: "horseshoe", attendance: 18000, capacity: 45000 } });

A tall football field in the dark, with a score

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

const svg = drawKyogijo({ sport: "nfl", orientation: "portrait", theme: "dark", crowd: true, away: { name: "Australia", abbr: "AUS", score: 108, color: "#00843d" }, home: { name: "Japan", abbr: "JPN", score: 112, color: "#bc002d" }, status: "final" });

A thumbnail, as blocks

Under 480 pixels wide (or with `detail: "simple"`) the stands are blocks of colour: no pattern, no aisles, a few kB.

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

const svg = drawKyogijo({ sport: "nhl", width: 300, crowd: true });

Light, dark and detail#

theme picks the drawing's colours; exactLines draws the lines at their true widths; detail: "simple" leaves out the small markings.

Rink, light

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

const svg = drawKyogijo({ sport: "nhl", theme: "light" });

Rink, dark

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

const svg = drawKyogijo({ sport: "nhl", theme: "dark" });

Field, lines at their true widths

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

const svg = drawKyogijo({ sport: "nfl", exactLines: true });

Field, simple

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

const svg = drawKyogijo({ sport: "nfl", detail: "simple" });