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
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 change | Where | Example |
|---|---|---|
| Shape of the tree | BLOBS: each entry is a ball of leaves (x, height, z, radius) | [0, 38, 0, 19] |
| Leaf colours | the pal('leaf...') lines (red, green, blue values) | pal('leafO', 236, 122, 32) |
| Pumpkins | the pumpkin(...) lines: angle, distance from the tree, size | pumpkin(0.5, 30, 5) |
| Hay bales | the box(...) lines: angle, distance, width, height, depth | box(1.5, 30, 11, 6, 7, ...) |
| Scarecrow, turkeys, wheat | the plant(...) lines: picture, colours, angle, distance | plant(TURKEY, TURKEY_C, 0.05, 37, 2) |
| How often the geese fly | GAP (seconds between flights) and FLY (seconds to cross) | FLY = 10, GAP = 20 |
| Number of falling leaves | the number in the falling-leaves loop | s < 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.