Aspect ratio calculator / The Lantern That Would Not Light

The Lantern That Would Not Light

A ukiyo-e style play in five acts, drawn with code. Free to download, copy or embed.

Bonus · 2026 series · All animations

Free to use, change and share under the MIT License. One file, no libraries, no sign-up.

What it is

The Lantern That Would Not Light is a one-minute play in five acts, drawn entirely with code in the manner of a Japanese woodblock print. A striped curtain slides open on a river bank at night, the characters enter one by one, a narrator’s line appears under the stage, and the curtain closes at the end. You can pause it, jump between acts, and switch on wooden clappers and a drum.

The story is original. It is a bonus piece in the 2026 series, and unlike the pixel scenes it is drawn with smooth lines on a 3:2 stage.

The story

  1. The dark bank. On the night before the moon-viewing, the Fox arrives with a paper lantern that will not light.
  2. The drummer. The Tanuki tries to wake it by drumming on his belly. The lantern opens one eye, yawns and goes back to sleep.
  3. The river keeper. The Kappa rises from the river and throws the water from the dish on his head at the sky. It rains. An old one-eyed umbrella hops in and opens over everyone.
  4. What the lantern wanted. Crowded under the umbrella, the lantern admits it was never out of oil. It did not want to shine alone. It lights itself.
  5. Moon-viewing. The clouds part, the moon comes out, and they watch it together.

The cast

CharacterFrom Japanese folkloreIn this play
Fox (kitsune)A clever fox, often shown with a white face and red markingsCarries the lantern and wants the festival to have light
TanukiA raccoon dog, a cheerful trickster said to drum on its bellyBelieves noise can fix anything
KappaA river creature with a shell and a dish of water on its headTries water, and brings the rain
Umbrella (kasa-obake)An old umbrella that has come to life, with one eye and one legShelters everyone, which brings them close together
Lantern (chōchin-obake)A paper lantern that has come to lifeWill not shine alone

What makes it look like a woodblock print

  • Black outlines and flat colour. Every shape is one flat colour inside a dark line, as if cut into a block and printed.
  • A small palette. Indigo, vermilion, ochre, pine green and the colour of the paper.
  • A graded sky. The sky is dark at the top and fades toward the horizon, like the hand-wiped gradation printers called bokashi.
  • Patterned nature. Waves are rows of repeated curls, mist is flat bands, rain is thin slanted lines.
  • The curtain. The black, persimmon and green stripes follow the traditional kabuki stage curtain.
  • Paper grain. A light speckle is printed over everything.

The stage is 3:2, a common landscape shape for prints and photos. You can check any size in that ratio with the aspect ratio calculator.

How to take it

1. Download the file

Press Download the HTML file above. You get lantern-play.html. Open it in a browser, or upload it to your own site. It works offline too.

2. Copy the code

Press Copy the code, paste it into a new file, and save it with a name ending in .html.

View the code
Loading…

3. Embed it on your page

<iframe src="https://aspect.tools/lantern-play" style="border:0;width:100%;max-width:900px;aspect-ratio:900/930" title="The Lantern That Would Not Light, a ukiyo-e style play" 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.

A visible credit is appreciated but not required. If you want to give one, use:

The Lantern That Would Not Light, 2026 series, by aspect.tools (https://aspect.tools/ukiyo-e-play), MIT License

How to change it

What to changeWhereExample
The story text, or a translationthe ACTS list: each act has a name and three lines with the moment they appear[0.42, 'She had carried her paper lantern...']
Title and endingTITLE, SUBTITLE, ENDvar TITLE = '...';
Speed of the playACT, the length of one act in secondsvar ACT = 13
Coloursthe colour names at the top: INDIGO, VERM, OCHRE, PINE, PAPERVERM = '#c8402e'
When things happenthe pr(act, from, to) calls in draw: act number and the part of the actpr(4, 0.62, 0.82) is when the lantern lights

The drawing of each character is its own function (fox, tanuki, kappa, umbrella, lantern), so you can reuse a single figure in another project.

A second play on the same stage retells a real myth: Susanoo and the Eight-Headed Serpent.

Questions

Is the story a traditional tale?

No. The characters come from Japanese folklore, but the story was written for this piece.

Can I translate the play?

Yes. All the text is in the ACTS list and three title variables near the top of the script.

Can I use it on my own website or in a video?

Yes. It is under the MIT License, so personal and commercial use are both allowed. Keep the license notice inside the file.

Does it have sound?

Sound is off by default. The Sound button turns on wooden clappers between acts and a drum for the tanuki.

What size is the stage?

It is 3:2. The drawing is made with shapes, so it stays sharp at any width.

Related tools and guides