golf-shot-viz options catalog

Every visual option, captured from the same 29 fixture shots so only the option changes between images in a row.

mode

studio draws every full trajectory for analysis. showcase is the replay view; trajectories reveal over time. Shown mid volley replay.

mode: studio
studio default
mode: showcase
showcase

cameraPreset

Framing presets sized to the data extent. Also settable at runtime with setCameraPreset, which flies the camera over.

cameraPreset: broadcast
broadcast default
cameraPreset: behind
behind
cameraPreset: side
side
cameraPreset: top
top
cameraPreset: green
green

colorBy

How tracer colors are assigned when shots carry no explicit color. club and session take fixed palette slots in order of first appearance. index cycles the palette per shot.

colorBy: club
club default
colorBy: session
session
colorBy: index
index

palette

Ordered categorical colors, any CSS color. The default is CVD-validated for dark surfaces. Keys beyond the palette length render gray instead of cycling.

palette: default
default
palette: custom
custom a warm custom palette

background

Scene background as a CSS color, or null for a transparent canvas over whatever the page draws behind it. Fog matches the background color.

background: default
default '#0b0e14'
background: light
light '#eef2f7'
background: transparent
transparent null, shown on a checkerboard

groundColor

Floor disc color, any CSS color. The default blends into the dark theme. A turf green reads as grass.

groundColor: default
default '#131a24'
groundColor: green
green '#215732'

units

Display units for the ground distance arcs and tooltips. Data stays meters either way.

units: meters
meters default
units: yards
yards

rollout

Off clips each trajectory at the first touchdown, so what you see is carry. On renders the measured bounce and rollout points past it.

rollout: false
false default
rollout: true
true

autoRotate

Slow idle orbit around the scene. Good for kiosk or hero placements.

autoRotate: true
true orbit speed as captured, not exact

play({ order })

volley launches every shot at once; fast balls visibly outpace slow ones. sequence staggers launches. Both GIFs are time-compressed.

play order: volley
volley default
play order: sequence
sequence

select(id)

Selecting a shot dims the rest. Click a tracer or call select(id); select(null) clears.

select: selected
selected one shot selected

Not pictured