WikiWayne
Local AIWikiBenchGamesPrompt LabGrok BotAI ToolsTech NewsAboutBlogContact

As an Amazon Associate I earn from qualifying purchases. This site contains affiliate links.

WikiWayne

Independent notes on local AI, real hardware, Grok, and the games that come out of that stack.

Categories

  • Local AI Hub
  • Local AI Glossary
  • Local AI
  • AI Tools
  • Tech News

Quick Links

  • About Wayne
  • Games
  • Grok Bot
  • Contact
  • Links
  • ADHD MaxxxingSponsored
  • WikiBench
  • Methodology
  • Editorial Standards
  • Disclosures
  • Privacy Policy
  • Sitemap

Follow on X

Hardware, local models, Grok, and what I actually ship.

Follow @wikiwayne
WikiWayne© 2026
PrivacyWikiBenchMethodologyEditorialDisclosuresTermsSitemap
Home/Prompt Lab/Sky Lanes

Sky Lanes

PL-193Very HardCharts & mapsThree.js

Great-circle routes and bearings, camera projection, midnight schedule wrap, filters and scrub rules.

Sky Lanes
Download fileMade for ChatGPT, Claude, Gemini, Grok and other AI tools

How to run

  1. Download the file or copy the prompt.
  2. Upload or paste it into any AI chat or coding tool, and send.
  3. Save the HTML it gives you as a file and open it in Chrome.
  4. Open it with ?test=1 and look in the browser console for the TEST lines.

What it tests

Great-circle routes and bearings, camera projection, midnight schedule wrap, filters and scrub rules.

The checks

Show the 5 checks
  1. After attract(false) and play(false) at t = 0: stats() has flights 300, airports 20, clock 0, airborne 129, drawn 129, departures, landings, scrubs, filterChanges, loops and soundTriggers all 0, playing false, demo false and selected -1; markers().length is 129; camera() is {az 20, el 20, dist 7.5}; airports() has 20 entries, the first {ALD, 58.2, -134.5} and the last {SEL, -17.5, -149.5}; flightInfo(0) is from DUN, to GRY, carrier 0, depMin 0.5, distKm 7945.80 (within 0.5), durMin 529.72 (within 0.05) and not airborne (progress null). At 1280x720: layout().globe is cx 640, cy 360, r 273.7 (each within 1.5) and 2 r is at least 0.75 of 720; project(47.5, 2.0) (GRY) is x 568.65, y 198.32 and front true, project(30.0, 31.5) (HOL) is x 701.40, y 296.14 and front true, project(58.2, -134.5) (ALD) is x 582.56, y 116.59 and front false (each position within 1.5 px); no rectangle in layout().hud or layout().controls comes within r of the disc center; every rectangle in layout().toggles and layout().play is at least 56 x 56. At 390x844: layout().globe is cx 195, cy 422, r 148.2 (each within 1.5) with 2 r between 0.33 and 0.37 of 844 and about 0.76 of 390 (the accepted exception); project(47.5, 2.0) is x 156.35, y 334.43 and project(30.0, 31.5) is x 228.26, y 387.41 (each within 1.5), both front true; the page has no horizontal scroll (document.documentElement.scrollWidth is at most 390).
  2. After attract(false), play(false) and scrub(600): flightInfo(k) for k = 1, 2, 8 and 10 is airborne with these values (progress within 1e-5, lat and lon within 0.01 degrees, heading within 0.05 degrees, distKm within 0.5): k 1 KOR to RAV, carrier 1, depMin 37.5, distKm 10727.56, progress 0.786526, lat 42.561, lon -161.854, heading 169.03; k 2 QUI to KOR, carrier 2, depMin 74.5, distKm 15548.12, progress 0.506974, lat 16.003, lon 120.982, heading 324.00; k 8 SEL to EMB, carrier 0, depMin 296.5, distKm 7493.21, progress 0.607550, lat -32.972, lon -104.125, heading 99.40; k 10 NIM to IRO, carrier 2, depMin 370.5, distKm 8158.85, progress 0.421935, lat -6.978, lon 81.850, heading 274.87. flightInfo(0) (DUN to GRY) and flightInfo(3) (EMB to CEL, depMin 111.5, distKm 5957.82) are not airborne. markers() has the scene positions (each within 0.003) k 1: (-0.47019, 1.38638, -1.43465); k 2: (1.71413, 0.57343, -1.02920); k 8: (-1.68855, -1.12954, -0.42491); k 10: (2.04139, -0.25241, 0.29234). For k = 2 and k = 8 the marker's direction m (normalized) satisfies |m . normalize(A x B)| at most 1e-4 (it stays in the plane of the route, A and B being the airport unit vectors) and angle(A, m) / angle(A, B) equals the progress within 1e-4. Then project() and markerScreen: markerScreen(121) is x 702.0, y 522.7 and front true (each within 1.5 px); a real click (pointerdown, pointerup) at that point gives stats().selected 121; a real click at (5, 5) gives -1. After setCameraOrbit(-45, 35, 5.0): project(58.2, -134.5) is x 380.54, y 18.50, front true; after setCameraOrbit(200, -30, 6.0): project(47.5, 2.0) is x 692.61, y 280.06, front false; after setCameraOrbit(120, 10, 6.0): project(-8.5, 115.0) (NIM) is x 598.52, y 512.38 and project(35.5, 139.5) (NOV) is x 765.40, y 157.59, both front true, and layout().globe.r is 349.7 (within 1.5); setCameraOrbit(0, 200, 1) gives camera() {az 0, el 85, dist 4}; a real pointer drag of 100 px to the right and 50 px down from setCameraOrbit(20, 20, 7.5) gives az -10 and el 35 (each within 0.1), and a wheel event with deltaY 500 gives dist 7.5 * exp(0.5) = 12.36 (within 0.02).
  3. After attract(false) and play(false), with real clicks on the buttons in layout().toggles and a real input event on the slider: scrub(100) gives clock 100, airborne 134, drawn 134, flights().length 134 and scrubs 1; real clicks on toggles c1 and c3 (filterChanges 2) give airborne 64 and every flights() entry has carrier 0 or 2; a real input event setting the slider to 400 gives clock 400, scrubs 2 and airborne 69; clicks on c1 and c3 again and on long (filterChanges 5) give airborne 55 and every flights() entry has distKm at least 12000; scrub(600) gives airborne 55 (scrubs 3); clicks on c0, c2 and c3 (filterChanges 8) give airborne 9 and every entry has carrier 1; a click on long (filterChanges 9) gives airborne 26; scrub(900) gives airborne 31 (scrubs 4); a click on long again (filterChanges 10) gives airborne 12; at the end departures 0, landings 0, soundTriggers 14 (= 0 + 4 + 10), and drawn equals markers().length equals airborne after every step above.
  4. After attract(false) (play is on), advance frame by frame: on each of the first 120 frames airborne = 129 + departures - landings, drawn equals markers().length equals airborne, and every marker present on two consecutive frames moves between 0.0045 and 0.0060 scene units; at t = 1.0 (60 frames) clock is 60, departures 16, landings 13, airborne 132; at t = 2.0 clock 120, departures 27, landings 26, airborne 130; advance(10.0) more gives clock 720, departures 158, landings 155, airborne 132, soundTriggers 15; a real keydown " " (Space) makes playing false and advance(1.0) leaves clock 720 and the counters unchanged; another Space makes playing true; scrub(100) gives clock 100, scrubs 1, departures 158, landings 155 (a scrub counts nothing), airborne 134, soundTriggers 16; advance(1.0) gives clock 160, departures 170, landings 169, airborne 132, soundTriggers 17; scrub(1430) then advance(0.5) gives clock 20 (the clock wrapped), departures 177, landings 175, airborne 132, scrubs 2, soundTriggers 19.
  5. Fresh load with the demo running, advance() frame by frame to each time (frames = 60 x t), reading clock, departures, landings, airborne: t = 1.0: 0, 0, 0, 129, camera az 32.857 (within 0.01) and demo true; t = 2.2: 12, 4, 2, 131; t = 7.0: 300, 66, 63, 132 and camera az 110.0 (within 0.01); t = 8.0: 360, 80, 76, 133; t = 13.9: 714, 156, 154, 131; t = 14.2: 732, 159, 156, 70, filterChanges 2, soundTriggers 17 and every flights() entry has carrier 0 or 2; t = 19.9: 1074, 194, 202, 59; t = 20.2: 1092, 197, 206, 56, filterChanges 5, soundTriggers 25 and every flights() entry has distKm at least 12000; t = 25.9: 1434, 211, 225, 51; t = 27.0: clock 0, 211, 225, 51; at t = 28.2 (after the cut-back): clock 0, departures 211, landings 225, airborne 129, filterChanges 5, loops 1, soundTriggers 27, camera() {az 22.571 (within 0.01), el 20, dist 7.5}, selected -1. Then a real drag (pointerdown at (400, 300), pointermove to (480, 300), pointerup) at t = 29.0 gives demo false, playing true and camera az 8.857 (within 0.05); 7.9 s later (no input) clock is 474, departures 315, landings 329 and demo is still false; 0.3 s after that demo is true again, clock 0, departures 315, landings 329, loops 2, soundTriggers 37 and camera az 22.571 (within 0.01). The run has zero console errors.

Runs by model

No runs posted yet. Be the first: post yours and tag @wikiwayne.

Show the full prompt
SKY LANES: a 3D Globe with 300 Made-Up Flights on Exact Great-Circle Routes, Time Scrub and Filters
HOOK OBJECT: window.__sky

Build "SKY LANES": a Three.js globe of a made-up planet, with 20 made-up airports and a fixed schedule of 300 made-up flights that fly along true great-circle routes at a constant ground speed. A 24-hour clock plays at 60 minutes per second, a time slider scrubs it, four carrier toggles and a long-haul toggle filter the flights, and you can tap a plane to select it. Everything is made up: no real airlines, brands or timetables. It is fun to keep watching because glowing arcs open and close over the globe like a live air-traffic map while the camera turns.

LOOK
- Style: night-map globe with glowing arcs. Palette: space #04070F with 300 seeded stars #FFFFFF (1 to 2 px), ocean #0B2A4A, graticule lines #1F5C8F every 15 degrees of latitude (from -75 to 75) and longitude, atmosphere rim #5AA9FF (additive), airports #FFFFFF, carrier 0 amber #FFB020, carrier 1 teal #2EC4B6, carrier 2 violet #B388FF, carrier 3 coral #FF6B6B (arcs at 35% opacity, planes solid), selected plane ring #FFFFFF, HUD text #BFD4FF, slider track #26304A, slider thumb #7FA8FF.
- The planet: a sphere of radius 2.0 scene units standing for a made-up planet of radius 6000 km (1 unit = 3000 km). Latitude and longitude (degrees, east positive) map to scene coordinates (x, y, z) = r * (cos(lat) sin(lon), sin(lat), cos(lat) cos(lon)).
- Airports (code, latitude, longitude), index 0 to 19: ALD 58.2 -134.5; BRV 41.0 -101.0; CEL 23.5 -77.5; DUN -4.0 -62.0; EMB -33.0 -70.5; FAL 64.0 -21.0; GRY 47.5 2.0; HOL 30.0 31.5; IRO -1.5 37.0; JUN -26.0 28.5; KOR 55.5 37.5; LUM 37.0 69.0; MOS 19.0 73.0; NIM -8.5 115.0; NOV 35.5 139.5; ORI 62.0 130.0; PLM -33.5 151.0; QUI -43.0 172.0; RAV 21.0 -157.5; SEL -17.5 -149.5. Each is a small white dot of radius 0.03 on the surface.
- Flights (a fixed schedule, no randomness), flight k = 0 to 299: origin index o = (7k + 3) mod 20; destination index = (o + 1 + ((5k + 2) mod 19)) mod 20 (never equal to the origin); carrier = k mod 4; departure minute dep = ((37 k) mod 1440) + 0.5; the great-circle angle w between the two unit vectors is atan2(|A x B|, A . B); distKm = 6000 w; durMin = distKm / 15 (ground speed 900 km/h = 15 km per minute; the longest flight is about 1,205 minutes, under a day); a flight is long-haul when distKm is at least 12,000 (81 of the 300 flights).
- Clock: T is minutes since the start; the clock shown is T mod 1440. Flight k is airborne at T when u = ((T - dep) mod 1440, a mathematical mod that is never negative) is less than durMin (so flights that left late yesterday are still in the air after midnight); its progress is f = u / durMin and its direction is the great-circle interpolation (sin((1 - f) w) A + sin(f w) B) / sin(w). Its plane marker sits at that direction times the radius 2.0 * (1 + 0.04 * sin(pi f)) (a gentle arc over the globe), and its nose points along the direction of travel. Its arc is the same route drawn as a thin line over the whole flight at the same heights, in the carrier color.
- Heading: the initial bearing from the plane's current position (lat1, lon1) to the destination (lat2, lon2): atan2(sin(dLon) cos(lat2), cos(lat1) sin(lat2) - sin(lat1) cos(lat2) cos(dLon)) in degrees, clockwise from north, in [0, 360).
- Filters: four carrier toggles (all on at start) and one LONG toggle (off at start). A flight is shown when its carrier toggle is on and, if LONG is on, it is long-haul. Hidden flights have no marker and no arc.
- Camera: a Three.js PerspectiveCamera looking at the origin with up = +y, at position distance * (cos(el) sin(az), sin(el), cos(el) cos(az)). Vertical field of view 40 degrees when width >= height; otherwise the field of view is chosen so the horizontal one is 40 degrees (tan(fovV / 2) = tan(20 degrees) * height / width). Default setCameraOrbit(20, 20, 7.5). Limits: el from -85 to 85, distance from 4.0 to 14.0 (values outside are clamped), az is free. Dragging right by 1 CSS px changes az by -0.3 degrees and dragging down by 1 px changes el by +0.3; the mouse wheel multiplies the distance by exp(deltaY * 0.001). A press and release that moves 5 px or less is a click: it selects the nearest front-facing drawn plane within 20 CSS px of the pointer, or clears the selection if there is none.
- Layout and text (HUD text 14 px monospace, 8.4 px per character, at most 22 characters per line): HUD lines "CLOCK 14:37", "AIRBORNE 129", "DEPARTURES 0", "LANDINGS 0", "SCRUBS 0  FILTERS 0" and, with a plane selected, "FLIGHT 121" and "KOR>JUN 77%". Controls: a PLAY/PAUSE button, the time slider (0 to 1439, step 1), four carrier toggle buttons and one LONG button (each button at least 56 x 56 CSS px, filled with its carrier color when on), and the "🔊 TAP FOR SOUND" chip. In landscape the HUD sits in the left strip, the toggles in the right strip, and the button and slider in the strip under the globe. In portrait the HUD sits above the globe and the controls below it. No HUD or control rectangle touches the globe disc, and a 16 px margin keeps the window corner at (5, 5) empty: no HUD, button or chip covers it.
- FIRST FRAME (t = 0, no input): the globe at camera (20, 20, 7.5), clock 00:00, 129 planes in the air with their arcs, HUD "AIRBORNE 129", all toggles on except LONG. The globe disc is centered in the window with radius r = (height / 2) * (2 / sqrt(distance^2 - 4)) / tan(fovV / 2): at 1280x720 that is 273.7 px, a disc 547 px high, 76% of the window height. On a phone in portrait (390x844) r = 148.2 px, a disc 297 px high, only 35% of the height but 76% of the width: that is an accepted exception.

MOTION / PLAY
- Playing: with play on (the start state) the clock advances exactly 1 minute per 1/60 s step (60 minutes per second). Space or the PLAY/PAUSE button toggles play. The time slider scrubs: a scrub sets T to the slider value (0 to 1439) and does not count any departure or landing for the jump; after it the clock continues from there. Toggles flip on a click or tap.
- Events: in each playing step from clock c0 to c1 = c0 + 1, flight k departs if some whole number n gives c0 < dep + 1440 n <= c1, and lands if c0 < dep + durMin + 1440 n <= c1. The event counts only when the flight passes the filter at that moment.
- ATTRACT MODE: with no input, a hands-free loop of exactly 1680 frames (28.0 s) runs from load, frame n = 1 to 1680, one 1/60 s step each: frames 1 to 120 hold at clock 0 (2.0 s); frames 121 to 840 play with all carriers on, LONG off, T = n - 120 (12.0 s, clock 0 to 720); between frames 840 and 841 the ghost turns carriers 1 and 3 off (2 filter changes) and frames 841 to 1200 play with carriers 0 and 2 only (6.0 s, T 721 to 1080); between frames 1200 and 1201 it turns carriers 1 and 3 back on and LONG on (3 filter changes) and frames 1201 to 1560 play (6.0 s, T 1081 to 1440, long-haul flights of all carriers); frames 1561 to 1680 hold at T = 1440, which shows clock 00:00 (2.0 s). Sum: 2.0 + 12.0 + 6.0 + 6.0 + 2.0 = 28.0 s. The camera turns the whole time: az = 20 + 360 * n / 1680 degrees, el 20, distance 7.5. At frame 1680 the loop cuts back to the t = 0 state (T = 0, all carriers on, LONG off, camera 20, 20, 7.5, nothing selected) with every counter keeping its value except that loops goes up by 1, and restarts at frame 1. Any input (pointer, key, wheel, slider, button) takes over: the ghost stops where it is, the clock keeps playing from the current T if play is on, and after 8 s with no input the globe cuts back to the t = 0 state and the 28.0 s loop restarts. Hook calls are not user input.
- Time: advance(seconds) runs round(60 * seconds) steps of 1/60 s. The 8 s idle timer counts the same 1/60 s steps as advance() (never wall-clock time). In a step the demo ghost (when on) or the free-running clock (when play is on) moves things; with demo off and play off nothing moves.
- The hook also exposes: attract(on) (false turns the ghost off; true cuts back to the t = 0 state and starts the loop), play(on), scrub(minutes) (the same as a slider scrub, counted), setFilter({carriers: [0, 1, 2, 3] as the carriers that are on, long: true | false}) (counted as one filter change per toggle that flips), select(k) (k or -1), airports() returning [{code, lat, lon}] in index order, flightInfo(k) returning {id, from, to, carrier, depMin, distKm, durMin, airborne, progress, lat, lon, heading} (progress, lat, lon and heading are null when the flight is not airborne; it ignores the filter), flights() returning the same objects for every airborne flight that passes the filter, markers() returning [{id, x, y, z}] with the scene position of every drawn plane marker, markerScreen(k) returning {x, y, front} in CSS px for a drawn marker (null when not drawn), project(lat, lon) returning {x, y, front} in CSS px for the point on the surface (r = 2.0) with the current camera (front is true when it faces the camera: P . C > P . P, with C the camera position), camera() returning {az, el, dist}, and layout() returning {globe: {cx, cy, r}, hud: [rects], controls: [rects], slider, play, toggles: {c0, c1, c2, c3, long}} as {x, y, w, h} in CSS px (the globe as the disc).

SOUND
- A landing counted as the 10th, 20th, 30th ... landing -> a soft chime (sine 880 Hz, 0.2 s, gain 0.05).
- A scrub -> a whoosh (noise through a band-pass sweeping 300 Hz to 1200 Hz, 0.3 s, gain 0.05). A filter toggle flip -> a click (square 600 Hz, 0.03 s, gain 0.04).
- A quiet hum: sine 110 Hz and sine 110.7 Hz, gain 0.02 each, always on after the first tap.
- With no AudioContext (before the first tap, and in ?test=1) nothing is played, but the triggers are still counted.

COUNTERS
stats() returns { fps, flights, airports, clock, airborne, drawn, departures, landings, scrubs, filterChanges, loops, soundTriggers, playing, demo, selected }.
- flights: 300. airports: 20. clock: T mod 1440 (minutes since midnight, 0 to 1439.x). airborne: the number of flights that are airborne and pass the filter right now. drawn: the number of plane markers in the draw call (equal to airborne).
- departures and landings: +1 for each event as defined above; never on a timer, never for a scrub or a cut-back. So between scrubs, with the filters unchanged, airborne = (airborne at the last scrub, filter change or load) + departures - landings since then.
- scrubs: +1 per slider scrub or scrub() call. filterChanges: +1 per toggle that flips (by click, by the ghost or by setFilter). loops: +1 at each cut-back.
- soundTriggers: +1 for every chime, whoosh and click, whether or not sound is on; so it always equals floor(landings / 10) + scrubs + filterChanges.
- playing: whether play is on. demo: whether the ghost is running. selected: the selected flight number or -1.
- On screen: the HUD lines above, readable in a paused frame and never over the globe.

CHECKS for ?test=1
With ?test=1, run an accelerated self-test that measures real positions and real events (not self-set flags) and logs "TEST n PASS" or "TEST n FAIL: reason" to the console and to window.__testResults:
Each check starts from a fresh load; advance() steps in 1/60 s increments.
1. After attract(false) and play(false) at t = 0: stats() has flights 300, airports 20, clock 0, airborne 129, drawn 129, departures, landings, scrubs, filterChanges, loops and soundTriggers all 0, playing false, demo false and selected -1; markers().length is 129; camera() is {az 20, el 20, dist 7.5}; airports() has 20 entries, the first {ALD, 58.2, -134.5} and the last {SEL, -17.5, -149.5}; flightInfo(0) is from DUN, to GRY, carrier 0, depMin 0.5, distKm 7945.80 (within 0.5), durMin 529.72 (within 0.05) and not airborne (progress null). At 1280x720: layout().globe is cx 640, cy 360, r 273.7 (each within 1.5) and 2 r is at least 0.75 of 720; project(47.5, 2.0) (GRY) is x 568.65, y 198.32 and front true, project(30.0, 31.5) (HOL) is x 701.40, y 296.14 and front true, project(58.2, -134.5) (ALD) is x 582.56, y 116.59 and front false (each position within 1.5 px); no rectangle in layout().hud or layout().controls comes within r of the disc center; every rectangle in layout().toggles and layout().play is at least 56 x 56. At 390x844: layout().globe is cx 195, cy 422, r 148.2 (each within 1.5) with 2 r between 0.33 and 0.37 of 844 and about 0.76 of 390 (the accepted exception); project(47.5, 2.0) is x 156.35, y 334.43 and project(30.0, 31.5) is x 228.26, y 387.41 (each within 1.5), both front true; the page has no horizontal scroll (document.documentElement.scrollWidth is at most 390).
2. After attract(false), play(false) and scrub(600): flightInfo(k) for k = 1, 2, 8 and 10 is airborne with these values (progress within 1e-5, lat and lon within 0.01 degrees, heading within 0.05 degrees, distKm within 0.5): k 1 KOR to RAV, carrier 1, depMin 37.5, distKm 10727.56, progress 0.786526, lat 42.561, lon -161.854, heading 169.03; k 2 QUI to KOR, carrier 2, depMin 74.5, distKm 15548.12, progress 0.506974, lat 16.003, lon 120.982, heading 324.00; k 8 SEL to EMB, carrier 0, depMin 296.5, distKm 7493.21, progress 0.607550, lat -32.972, lon -104.125, heading 99.40; k 10 NIM to IRO, carrier 2, depMin 370.5, distKm 8158.85, progress 0.421935, lat -6.978, lon 81.850, heading 274.87. flightInfo(0) (DUN to GRY) and flightInfo(3) (EMB to CEL, depMin 111.5, distKm 5957.82) are not airborne. markers() has the scene positions (each within 0.003) k 1: (-0.47019, 1.38638, -1.43465); k 2: (1.71413, 0.57343, -1.02920); k 8: (-1.68855, -1.12954, -0.42491); k 10: (2.04139, -0.25241, 0.29234). For k = 2 and k = 8 the marker's direction m (normalized) satisfies |m . normalize(A x B)| at most 1e-4 (it stays in the plane of the route, A and B being the airport unit vectors) and angle(A, m) / angle(A, B) equals the progress within 1e-4. Then project() and markerScreen: markerScreen(121) is x 702.0, y 522.7 and front true (each within 1.5 px); a real click (pointerdown, pointerup) at that point gives stats().selected 121; a real click at (5, 5) gives -1. After setCameraOrbit(-45, 35, 5.0): project(58.2, -134.5) is x 380.54, y 18.50, front true; after setCameraOrbit(200, -30, 6.0): project(47.5, 2.0) is x 692.61, y 280.06, front false; after setCameraOrbit(120, 10, 6.0): project(-8.5, 115.0) (NIM) is x 598.52, y 512.38 and project(35.5, 139.5) (NOV) is x 765.40, y 157.59, both front true, and layout().globe.r is 349.7 (within 1.5); setCameraOrbit(0, 200, 1) gives camera() {az 0, el 85, dist 4}; a real pointer drag of 100 px to the right and 50 px down from setCameraOrbit(20, 20, 7.5) gives az -10 and el 35 (each within 0.1), and a wheel event with deltaY 500 gives dist 7.5 * exp(0.5) = 12.36 (within 0.02).
3. After attract(false) and play(false), with real clicks on the buttons in layout().toggles and a real input event on the slider: scrub(100) gives clock 100, airborne 134, drawn 134, flights().length 134 and scrubs 1; real clicks on toggles c1 and c3 (filterChanges 2) give airborne 64 and every flights() entry has carrier 0 or 2; a real input event setting the slider to 400 gives clock 400, scrubs 2 and airborne 69; clicks on c1 and c3 again and on long (filterChanges 5) give airborne 55 and every flights() entry has distKm at least 12000; scrub(600) gives airborne 55 (scrubs 3); clicks on c0, c2 and c3 (filterChanges 8) give airborne 9 and every entry has carrier 1; a click on long (filterChanges 9) gives airborne 26; scrub(900) gives airborne 31 (scrubs 4); a click on long again (filterChanges 10) gives airborne 12; at the end departures 0, landings 0, soundTriggers 14 (= 0 + 4 + 10), and drawn equals markers().length equals airborne after every step above.
4. After attract(false) (play is on), advance frame by frame: on each of the first 120 frames airborne = 129 + departures - landings, drawn equals markers().length equals airborne, and every marker present on two consecutive frames moves between 0.0045 and 0.0060 scene units; at t = 1.0 (60 frames) clock is 60, departures 16, landings 13, airborne 132; at t = 2.0 clock 120, departures 27, landings 26, airborne 130; advance(10.0) more gives clock 720, departures 158, landings 155, airborne 132, soundTriggers 15; a real keydown " " (Space) makes playing false and advance(1.0) leaves clock 720 and the counters unchanged; another Space makes playing true; scrub(100) gives clock 100, scrubs 1, departures 158, landings 155 (a scrub counts nothing), airborne 134, soundTriggers 16; advance(1.0) gives clock 160, departures 170, landings 169, airborne 132, soundTriggers 17; scrub(1430) then advance(0.5) gives clock 20 (the clock wrapped), departures 177, landings 175, airborne 132, scrubs 2, soundTriggers 19.
5. Fresh load with the demo running, advance() frame by frame to each time (frames = 60 x t), reading clock, departures, landings, airborne: t = 1.0: 0, 0, 0, 129, camera az 32.857 (within 0.01) and demo true; t = 2.2: 12, 4, 2, 131; t = 7.0: 300, 66, 63, 132 and camera az 110.0 (within 0.01); t = 8.0: 360, 80, 76, 133; t = 13.9: 714, 156, 154, 131; t = 14.2: 732, 159, 156, 70, filterChanges 2, soundTriggers 17 and every flights() entry has carrier 0 or 2; t = 19.9: 1074, 194, 202, 59; t = 20.2: 1092, 197, 206, 56, filterChanges 5, soundTriggers 25 and every flights() entry has distKm at least 12000; t = 25.9: 1434, 211, 225, 51; t = 27.0: clock 0, 211, 225, 51; at t = 28.2 (after the cut-back): clock 0, departures 211, landings 225, airborne 129, filterChanges 5, loops 1, soundTriggers 27, camera() {az 22.571 (within 0.01), el 20, dist 7.5}, selected -1. Then a real drag (pointerdown at (400, 300), pointermove to (480, 300), pointerup) at t = 29.0 gives demo false, playing true and camera az 8.857 (within 0.05); 7.9 s later (no input) clock is 474, departures 315, landings 329 and demo is still false; 0.3 s after that demo is true again, clock 0, departures 315, landings 329, loops 2, soundTriggers 37 and camera az 22.571 (within 0.01). The run has zero console errors.

KEEP IT SHORT
- Keep the whole file under about 1,500 lines (soft target) so you can write it in one pass and finish well inside 15 minutes.
- Save lines with helpers, loops and instancing, not by dropping features. Everything above must really work: no placeholders, no TODOs.

BUILD RULES (all required):
- Deliver ONE self-contained HTML file: inline CSS and JS, no build step, no local assets. Libraries only from a CDN. If you use Three.js, use exactly this import map: {"imports":{"three":"https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js","three/addons/":"https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/"}}
- It must open straight from disk in desktop Chrome and on an iPhone (Safari), fill the full screen, handle resize and touch, and stay smooth (target 60 fps).
- It must look stunning in the very FIRST frame: no black screen, no loading wait, no tiny subject. The main subject fills at least 50% of the screen height.
- SOUND (required): all sound is made in code with Web Audio (no audio files). Show a small "🔊 TAP FOR SOUND" chip; on the first tap create ONE AudioContext, route everything through a master gain of 0.6 into a DynamicsCompressor, and hide the chip. Also expose enableAudio() on the hook object named at the top.
- Expose the hook object named at the top with: setCameraOrbit(azimuthDeg, elevationDeg, distance) (or an equivalent camera setter), advance(seconds) that steps the simulation exactly that much for still captures, enableAudio(), and stats() returning {fps, ...the counters named above}. Use a fixed random seed of 360 so every run is the same.
- Every on-screen counter must count a real event you can see happen. No fake numbers.
- No text overlapping the subject; any label must be readable in a paused frame.
- No brand logos, no real people, no copyrighted characters, brand names or logos.

FAILURE MODES TO AVOID
- Flights that fly straight lines through the planet or along constant latitude and longitude instead of great-circle arcs, markers that do not stay in the plane of their route, or the wrong radius profile 2.0 * (1 + 0.04 * sin(pi f)).
- A schedule that is random or drifts: wrong origins, destinations or departure minutes, durations that do not equal distKm / 15, or flights that vanish at midnight instead of wrapping.
- Latitude and longitude drawn on the wrong side (mirrored or rotated globe), a camera that does not follow the stated orbit formula, or a project() that does not use the real camera.
- Filters that hide the marker but leave the arc, or toggles that do not change airborne, drawn and flights() together.
- Departure and landing counters that tick on a timer, count a scrub's jump, ignore the filter, or break airborne = start + departures - landings.
- A globe that is tiny or off center, text or buttons drawn over the globe disc, tap targets smaller than 56 px, or a page that scrolls sideways on a phone.
- A cut-back at 28 s that leaves old filters, selection or camera behind, or counters that reset when they should keep their values.
- Drag, wheel or tap that does nothing on touch, or a tap that selects a plane on the far side of the globe.
- A black first frame, a page that waits before drawing, or a script error from calling methods on objects that don't exist yet.
- The same variable declared twice.

SELF-TEST LOOP
- If you can run code: build the file, open it, read the console, run ?test=1, and take screenshots at 3 s, 10 s and 30 s at 1280x720 and 390x844. Look at the screenshots and fix what looks wrong. Fix and retest until all 5 checks pass with zero console errors. Mark anything you could not run as UNMEASURED; never invent results.
- If you are chat-only: go through this prompt line by line, check your code against each line, and fix anything that would fail. Then write one corrected, complete file.
- Final answer: ONE complete HTML file in ONE code block, then the 5 checks marked PASS, FAIL or UNMEASURED. No snippets, no "rest unchanged".

Built one? Post it on X and tag @wikiwaynePost on X

More Very Hard prompts

Wizard's Chess

Very HardGames
PL-0834 runs

Endless Neighborhood Day

Very HardCities & buildings
PL-0764 runs
Ant Empire

Ant Empire

Very HardCreatures & characters
PL-194No runs yet

More Charts & maps prompts

Fourier Scribe

HardCharts & maps
PL-1691 run
Bar Race

Bar Race

EasyCharts & maps
PL-178No runs yet
Storm Map

Storm Map

MediumCharts & maps
PL-183No runs yet