Your Cart
Loading

SWAN · Full Python Source

On Sale
$5.99
$5.99
Added to cart

SWAN · Full Python Source

The complete, runnable Python source code of the ASCII artwork "SWAN". Run it and two swans glide on dark water: one comes in from the right, the other from far back on the left. They meet, lower their heads until the beaks touch, and their two necks make a heart. Then the second swan slips behind the first, turns far back, and follows it out of frame. Everything is made only of letters, numbers and symbols.

The preview above is swan.py running live on a computer.

What's included

  • swan.py: the complete source code of the animation (one file)
  • swan_shape.npz: the swan's shape as point data, loaded by swan.py
  • README: setup guide, install and run in three steps
  • HOW_IT_WORKS: how the shape, the neck, the motion and the water are made, step by step
  • Licence

Requirements

  • Python 3 with three libraries: numpy, scipy and pygame-ce (one install command)
  • Tested on: Windows 11 + Python 3.13
  • Expected to work, not tested yet: Python 3.10 to 3.12, macOS, Linux
  • Uses several CPU cores to run smoothly; on older computers it may play slower

Price and support

The same code is free on my GitHub. Buying it here is a way to support my work.

Licence summary (please read before buying)

You may: run the artwork on your own computer · read and study the code · change it for your own personal experiments.

You may not: repost the code or a changed version of it as your own · post videos made from it as your own artwork · resell it, or use it or its output commercially without permission · use it to train AI models.

If you post something you made with it, a credit to @jin_22ee is appreciated. If you see this code or the artwork posted as someone else's, please report it and let me know. The full terms are in LICENSE.txt inside the download.

All sales are final. Because this is an instant digital download, refunds are not available.

Digital download · instant delivery · ZIP (about 1 MB)

JIN2 · creative coding artist · Instagram @jin_22ee

You will get a ZIP (1MB) file