Aspect ratio calculator / Sekigahara from the Ridge

Sekigahara from the Ridge

The Battle of Sekigahara as a pixel-art play in 112 seconds. Zoom in, change the language, turn the sound on.

Play · 2026 series · All animations

It starts by itself and runs for 112 seconds. Use the buttons under the picture to zoom, to jump to a camp or to Mount Matsuo, to change the speed or the language (English, Korean, Japanese, Chinese). The sound starts off: press Turn sound on or the M key. Free under the MIT License.

What it is

A pixel-art valley, seen from a ridge, in which the Battle of Sekigahara plays out in 112 seconds. Two armies come down into the field through morning fog, spearmen, archers and rows of matchlock gunners meet in the middle, a hill that has been quiet all morning begins to move, and one side breaks. There are hundreds of tiny soldiers, three camps with their banners, a road, rice paddies and a river, and you can zoom in until you see a single guard.

It is one HTML file with no libraries. A caption under the picture tells the story in eleven short steps, and a clock shows roughly what time of day it is on the battlefield. Everything is in four languages: English, Korean, Japanese and Simplified Chinese.

The story, step by step

These are the eleven captions, with the second they appear and the battlefield time shown next to them. The clock is a guide, not a measurement: the picture squeezes about six and a half hours into 112 seconds.

SecondField timeCaptionWhat you see
08:00 amFog in the valleyMist drifts across both camps. The two armies are small blocks at the edges of the field.
88:20 amDrums and hornsA war drum on each side and two conch horns. Birds can be heard in the fog.
148:35 amDown into the fieldThe columns leave their camps and walk toward the middle.
229:00 amSpears, archers, gunsThree kinds of soldier in order: spearmen, archers, three rows of gunners. First smoke.
3310:05 amClose fightingThe lines meet. Spears cross, volleys roll, small clashes flash with symbols.
4711:30 amThe hill begins to moveThe troops on Mount Matsuo, drawn in a third colour, start down the slope.
5511:50 amA flank turnsThey hit the side of the Western line. The hill is nearly empty.
6212:30 pmThe Western line breaksCommanders mount up and ride away from their camps with their guards.
731:05 pmFlight along the roadA stream of soldiers leaves along the road to the west.
881:30 pmThe valley emptiesFew Western banners remain. The smoke thins.
1012:00 pmVictory for the EastThe Eastern banners hold the middle of the field. A last drum, a cheer and a horn.

What is true and what is simplified

The outline follows what historians and museums say. The details are an artist’s version.

Part of the pictureHow it relates to history
The day and the sidesThe battle was fought on 21 October 1600 in the Sekigahara valley. Some references give the 20th. Tokugawa Ieyasu led the Eastern Army; Ishida Mitsunari led the Western coalition.
Fog and rainRain in the night left a thick mist, and the fighting began around 7:30 or 8:00 in the morning once it began to lift.
Mount MatsuoKobayakawa Hideaki sat on Mount Matsuo with a large force and, according to the usual account, had secretly agreed to join Ieyasu. At about noon his men came down and attacked the flank of Otani Yoshitsugu’s troops and the Western line behind them. In the picture this happens a little earlier, at 11:30.
Ieyasu fires on the hillA well-known story says Ieyasu ordered his gunners to fire on Kobayakawa’s position to make him move. It is told in many books, and some historians doubt it. The picture does not show it; the caption only mentions it as the old story.
The commanders leavingIn the picture the Western commanders ride away with their guards. In history it went differently for each of them: Otani Yoshitsugu died on the field, while Ukita Hideie, Konishi Yukinaga and Ishida Mitsunari fled. Ishida was captured later and executed.
The road outShimazu Yoshihiro’s force is said to have escaped by cutting through the Eastern lines. The picture only shows soldiers leaving along the road, not who they were.
NumbersBoth armies were large, tens of thousands of men on each side. The picture shows a few hundred soldiers so that you can see each one, and the groups stand where they look good, not where the units really stood.
The endingIeyasu held the field by the afternoon. He was named shogun in 1603, and his family ruled Japan until 1868.

How to watch

Do thisHow
ZoomMouse wheel, two fingers on a touch screen, or the + and − buttons (also the + and - keys once you have clicked the picture)
Move aroundDrag the picture, or use the arrow keys after clicking it. 0 goes back to the whole valley.
Jump to a placeThe buttons for the whole valley, the Western command, the centre of the line, Mount Matsuo and the Eastern command
Names of the campsZoom in past about 2.6× and the names of the commanders appear over their camps, in the language you chose.
Change the speedThe speed menu goes from 0.5× to 2×. The picture and the sound stay together.
Watch againReplay starts from the fog.
Change the languageThe menu at the top. The choice is kept in this browser. You can also open the page with ?lang=ko, ?lang=ja or ?lang=zh.

The sound

It starts off, because a browser only lets a page make sound after you press something. Press Turn sound on or the M key, and use the volume slider beside it. The sound follows the picture: if you pause, change the speed or hide the tab, it follows. Nothing is an audio file; every sound is made in your browser as it plays.

What you hearWhen
WindAll the time, very low
Morning birdsIn the fog, before the armies move
Conch horns and war drumsIn the first ten seconds, one drum when Mount Matsuo moves, and a drum and a horn at the end
HoofbeatsWhen cavalry rides, and when the commanders leave
ArrowsA soft whoosh each time archers loose, from about 24 seconds
Gun volleysFrom the first volleys at about 24 seconds, in rolling rows from each side
Steel clashingAt each of the clash marks (the little symbols that pop up) in the middle of the fight
Crowd shoutsAt the first contact, when Mount Matsuo moves, when the line breaks, and a bigger cheer at the end

The sounds are panned to match where they happen, so a volley on the left comes from the left. The loudest moments are the horns and the closing cheer; the battle itself sits lower so that the volume slider has room. If it is too quiet or too loud on your device, change the slider first.

How to take it

Press Download the HTML file above to get sekigahara-from-the-ridge.html, or press Copy the code and save it as a file ending in .html. It is one file with no libraries and works offline. To record a video, open the picture-only view and record your screen: it hides the buttons and keeps the picture and the caption.

View the code
Loading…

Embed it on your page

With all the buttons, language menu and sound:

<iframe src="https://aspect.tools/sekigahara-ridge" style="border:0;width:100%;max-width:1180px;height:960px" title="Sekigahara from the Ridge" loading="lazy"></iframe>

Picture and caption only:

<iframe src="https://aspect.tools/sekigahara-ridge#video" style="border:0;width:100%;max-width:1180px;aspect-ratio:28/18" title="Sekigahara from the Ridge" loading="lazy"></iframe>

License and credit

MIT License. You can use it, change it, share it and sell things made with it, for personal or commercial work. The one condition: keep the copyright and license notice that is at the top of the file.
Sekigahara from the Ridge, 2026 series, by aspect.tools (https://aspect.tools/sekigahara-from-the-ridge), MIT License

A visible credit is appreciated but not required.

How to change it

What to changeWhereExample
The language it opens inthe first line of the language block, let lang='en';; en, ko, ja or zhlet lang='ko';
The starting volumevolume=.8 at the end of the let audio=null,... line, and value="80" on the volume slidervolume=.5 and value="50"
The words of the storyPHASES: one entry per step, with the second it starts, four titles and four texts (en, ko, ja, zh)[47,["The hill moves", ...
The battlefield clockCLOCK: pairs of a second and a minute of the day (480 is 8:00 am)[0,420] for a 7:00 am start
The names over the campsNAMES, four languages eachwest:["Ishida", ...]
The colour of a campcloth and trim in the camps listtrim:'#2f6f9f'
Remove the opening hornsdelete the 'conch' entries in the cue list that starts with [5.2,470,'conch']delete [5.2,470,'conch'],[6.6,90,'conch'],

The soldiers’ routes and the timing of the whole fight are worked out in the same file, so a change there needs care. The 112 seconds are fixed by TOTAL.

Sources

The outline of the battle, the times of day and the order of events follow these pages. Where they differ, the picture follows the more cautious one.

Questions

Do I have to click anything?

No. It starts by itself, runs for 112 seconds and stops on the last picture. Press Replay to watch it again.

Does it have sound?

Yes, and it starts off. Press Turn sound on, or the M key. A browser only lets a page make sound after you have pressed something. A volume slider sits next to the button.

Which languages does it have?

English, Korean, Japanese and Simplified Chinese. The menu at the top changes the captions, the buttons, the clock and the names of the commanders. The choice is remembered in this browser.

Is it historically accurate?

The outline is: the day, the two sides, the fog, the hill that turned, the collapse of the Western line and the result. The details are simplified. The number of soldiers is far smaller, the positions are approximate, and the commanders’ escape is shown in one way when in reality it went differently for each of them. The page lists what is true and what is not.

Why is the time of day only approximate?

The picture squeezes about six and a half hours into 112 seconds, and the clock moves faster or slower at different points so that the hill moves around noon and the end falls in the afternoon. Treat it as a guide.

Does it work on a phone?

Yes. Zoom with two fingers and drag to move. The buttons wrap onto several lines on a small screen. A larger screen shows the soldiers better.

Does it slow my computer down?

It draws about 30 times a second while it plays and stops when it is paused or the tab is hidden. The picture is small, 1,120 by 600 pixels.

Can I use it in my own project?

Yes. It is under the MIT License for personal and commercial use. Keep the license notice at the top of the file.

Related tools and guides