Opus Motion ★ Star on GitHub

Game & sports · shot-map-heat

Shot map with heat

A half pitch or half court draws on and shots land one by one (goals as bold discs, saves as hollow dots, misses as crosses) while a smooth heat map of shot locations builds underneath; counters for shots, goals and conversion run in a side panel or header.

A free, MIT-licensed game graphic from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Shot map with heat: three frames of the game graphic, start, middle and end
Shot map with heat — start, middle and end of the 8.0-second motion.

What Shot map with heat is for

Match and player shot maps, xG explainers, basketball shot charts, scouting reports and "where do they score from" stories. Give the shots as {x, y, result, value} (x 0 = far edge .. 1 = goal line, y 0..1 across, result goal | saved | miss).

  • shot map
  • heatmap
  • heat map
  • shot chart
  • xg
  • football
  • soccer
  • basketball
  • pitch
  • court
  • goals
  • scouting
  • analytics
  • sports
  • stats
  • data

Details

Category
Game & sports graphics
Length
8.0 s (240 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
title subtitle
Colour props
heatColors background ink accent accent2
Mood
hud
Roles
subject

Use Shot map with heat in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add shot-map-heat --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render shot-map-heat --props '{"title":"Shot map","subtitle":"Season to date","heatColors":["#1B2B6B","#1FB5C9","#FFD23F","#FF4A3D"],"background":"#0A1020","ink":"#FFFFFF","accent":"#FFC933","accent2":"#2FD4C0"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export shot-map-heat --as webm-alpha --props '{"title":"Shot map","subtitle":"Season to date","heatColors":["#1B2B6B","#1FB5C9","#FFD23F","#FF4A3D"],"background":"#0A1020","ink":"#FFFFFF","accent":"#FFC933","accent2":"#2FD4C0"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="shot-map-heat"
  props={{
    title: 'Shot map',
    subtitle: 'Season to date',
    heatColors: ['#1B2B6B', '#1FB5C9', '#FFD23F', '#FF4A3D'],
    background: '#0A1020',
    ink: '#FFFFFF',
    accent: '#FFC933',
    accent2: '#2FD4C0',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="shot-map-heat"
  props='{"title":"Shot map","subtitle":"Season to date","heatColors":["#1B2B6B","#1FB5C9","#FFD23F","#FF4A3D"],"background":"#0A1020","ink":"#FFFFFF","accent":"#FFC933","accent2":"#2FD4C0"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "shot-map-heat",
      "props": {
        "title": "Shot map",
        "subtitle": "Season to date",
        "heatColors": [
          "#1B2B6B",
          "#1FB5C9",
          "#FFD23F",
          "#FF4A3D"
        ],
        "background": "#0A1020",
        "ink": "#FFFFFF",
        "accent": "#FFC933",
        "accent2": "#2FD4C0"
      }
    }
  ]
}

Shot map with heat props

17 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
sport"football"football | basketball | plain
title"Shot map"heading
subtitle"Season to date"small line above the heading
shots[{"x":0.918,"y":0.593,"result":"miss","value":0.47},{"x":0.466,"y":0.721,"result":"miss…array of {x, y, result, value}: x 0..1 across the drawn area (1 = goal / basket line), y 0..1 across the width, result goal|made | saved|hit | miss, value 0..1 shot quality (sizes the dot and the heat). Empty = built-in sample
halftruetrue = attacking half only (bigger), false = whole pitch / court (x then runs along the whole length)
showHeattrueshow the heat map underneath
showTrailstruedraw a short dashed line from each shot towards goal
goalLabel"Goals"name for scored shots (Goals, Baskets, Made)
shotLabel"Shots"name for all attempts (Shots, Attempts)
rateLabel"Conversion"name of the percentage (Conversion, FG%)
heatColors["#1B2B6B","#1FB5C9","#FFD23F","#FF4A3D"]heat ramp from cold to hot, 2-5 hex colours
field"auto"surface colour, or "auto" for the sport default (darkened)
background"#0A1020"frame colour, or "transparent" to overlay footage
ink"#FFFFFF"text colour
accent"#FFC933"goal dot and heading highlight colour
accent2"#2FD4C0"percentage colour
fontFamily"auto"CSS font family, or "auto"

Notes & credits

Technique sources:

  • original