Aspect ratio calculator / Typing Seoul

Typing Seoul

Code is typed, and Seoul at night is drawn in text, character by character.

ASCII · 2026 series · All animations

It plays by itself and starts again after the city is finished. Free under the MIT License.

What it is

A 16:9 animation in two halves. On the left, sixteen lines of code are typed, one character at a time. On the right, Seoul at night is drawn with letters and symbols, and it grows exactly as fast as the typing: when half of a line is typed, half of that part of the city is there. It takes about 25 seconds, holds the finished city for a few seconds and starts again.

The code on the left reads like a real program, but it is a script for the animation, not the program that draws the picture. It is there to be read and enjoyed.

What each line draws

Line typedWhat appears
seoul.sky(...)Stars that twinkle, and the moon
seoul.mountain('Bukhansan')The ridge of Bukhansan, the mountain north of the city, drawn from left to right
seoul.mountain('Namsan')Namsan, the green hill in the middle of the city
seoul.tower('N Seoul Tower')The tower on top of Namsan, built from the ground up, with a red light at the tip
seoul.skyline(...)Ordinary office and apartment blocks, one after another
seoul.building('63 Building')The gold-coloured tower on Yeouido
seoul.tower('Lotte World Tower')The 555-metre tower, the tallest building in Korea
seoul.palace('Gyeongbokgung')A palace gate with two tiled roofs
seoul.river('Han')The Han River, with moving water
seoul.bridge('Banpo')Banpo Bridge and its rainbow fountain, then cars crossing
seoul.lights.on()Windows light up in a random order, and reflections appear on the water
seoul.print('SEOUL')The name of the city in large letters in the sky

The picture is a postcard, not a map: the landmarks are real, but they are placed side by side so that all of them fit in one view.

Make a video of it

The page is an animation, not a video file. To get a video, open the picture-only view (the address ends in #video), make the browser full screen and record the screen with the recorder of your computer or phone. The picture is 16:9, so it fills a 1920 × 1080 recording exactly.

How to take it

Press Download the HTML file above to get typing-seoul.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.

View the code
Loading…

Embed it on your page

<iframe src="https://aspect.tools/seoul-code" style="border:0;width:100%;max-width:1100px;aspect-ratio:16/12" title="Typing Seoul" 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.
Typing Seoul, 2026 series, by aspect.tools (https://aspect.tools/typing-seoul), MIT License

A visible credit is appreciated but not required.

How to change it

What to changeWhereExample
The text that is typedCODE: one entry per line['// hello from Seoul']
Which line draws which partthe second value of a CODE entry['seoul.river();', 'river']
Typing speedTYPE_SPEED, characters per secondvar TYPE_SPEED = 40;
How long the finished city staysHOLD, in secondsvar HOLD = 20;
Play once and stopLOOPvar LOOP = false;
Coloursthe col(...) linescol('gold', '#e8b84a');
The big word in the skyFONT and the 'SEOUL' text below itAdd letters to FONT as 5 × 5 patterns

Questions

Is this a video?

No. It is an animation that runs in the browser from one HTML file. You can record your screen to turn it into a video; the picture-only view is made for that.

Does the typed code really draw the city?

No. The typed text is a script for the show. The real drawing code is in the same file, below it, and you can read it.

Which places are in it?

Bukhansan, Namsan and N Seoul Tower, the 63 Building, Lotte World Tower, a palace gate for Gyeongbokgung, the Han River and Banpo Bridge with its fountain.

Can I change the code that is typed?

Yes. Edit the CODE list at the top of the script. Lines can be any text.

Can I use it in my own project or video?

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

Related tools and guides