Aspect ratio calculator / Pixel Thanksgiving

Pixel Thanksgiving

A rotating autumn scene with falling leaves, pumpkins and geese at sunset. Free to download, copy or embed.

2026 series · All animations

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

What it is

An autumn scene for Thanksgiving, drawn with code. A tree with orange, red and gold leaves turns slowly through 360 degrees while leaves drift down. Around it are pumpkins, hay bales, wheat sheaves, a scarecrow and two turkeys. Behind it the sun sets over the hills, clouds move across the sky, and a V of geese flies past every 20 seconds. Warm string lights twinkle in the tree. Drag the scene to spin it yourself.

It is a single HTML file with no libraries, so it is easy to put on a family page, a class site, a shop banner or a holiday greeting.

How to take it

1. Download the file

Press Download the HTML file above. You get pixel-thanksgiving.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

Paste this where you want the scene to appear. It loads from this site, so you do not need to host anything.

<iframe src="https://aspect.tools/pixel-thanksgiving" width="420" height="720" style="border:0;max-width:100%" title="Pixel Thanksgiving scene" 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 not required, but it is appreciated. If you want to give one, use:

Pixel Thanksgiving, 2026 series, by aspect.tools (https://aspect.tools/thanksgiving), MIT License

The file comes with no warranty. The small credit line under the scene can be removed if you keep the notice inside the file.

How to change it

Open the file in any text editor. The settings are short lines near the top of the script:

What to changeWhereExample
Shape of the treeBLOBS: each entry is a ball of leaves (x, height, z, radius)[0, 38, 0, 19]
Leaf coloursthe pal('leaf...') lines (red, green, blue values)pal('leafO', 236, 122, 32)
Pumpkinsthe pumpkin(...) lines: angle, distance from the tree, sizepumpkin(0.5, 30, 5)
Hay balesthe box(...) lines: angle, distance, width, height, depthbox(1.5, 30, 11, 6, 7, ...)
Scarecrow, turkeys, wheatthe plant(...) lines: picture, colours, angle, distanceplant(TURKEY, TURKEY_C, 0.05, 37, 2)
How often the geese flyGAP (seconds between flights) and FLY (seconds to cross)FLY = 10, GAP = 20
Number of falling leavesthe number in the falling-leaves loops < 90

The scarecrow, turkey and wheat are small text pictures (the SCARECROW, TURKEY and WHEAT lists). Each letter is one coloured block, so you can redraw them or add a figure of your own by typing letters in a grid.

When is Thanksgiving?

In the United States, Thanksgiving is the fourth Thursday of November. In 2026 that is November 26. Canada celebrates it on the second Monday of October. The scene is not tied to a date, so it also works as a general autumn or harvest decoration.

More like this

For December, there is a pixel Christmas tree made the same way, with snow, gifts and a flying sleigh.

Questions

Can I use the pixel Thanksgiving scene on my own website?

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

Do I have to give credit?

You must keep the copyright and license notice in the file. A visible credit or a link back is appreciated but not required.

Does it need a server or any libraries?

No. It is a single HTML file that runs in the browser and also works offline.

Does it work on phones?

Yes. It fits the screen width, and you can drag with a finger to spin the scene.

Can I use it for autumn or harvest pages that are not about Thanksgiving?

Yes. Nothing in the scene shows a date or a greeting, and the title text is one line you can change.

Related tools and guides