Skip to main content

A general-purpose programmatic animation tool

Project description

Morpho

A general-purpose programmatic animation tool

Features

  • Animate basic figures like Points, Paths, Polygons, Splines, Images, and Text
  • Helper functions to build more complex composite figures like grids
  • Tools for quickly creating custom figures that animate in precisely specified ways
  • Multiple tweening options and the ability to define custom tweens
  • Apply custom transformations to figures to create complex patterns
  • Support for multiple layers each with its own independent dynamic camera
  • Ability to use layers as masks for other layers
  • Color gradients, both as fills and as color gradients along paths
  • Some primitive 3D animation capability
  • Preview animations along with the ability to locate positions on screen with a click
  • Export animations as MP4, GIF, and PNG sequences at arbitrary framerates and resolutions
    • (Note: FFmpeg required to create MP4s, and Gifsicle required to make small size GIFs)

Installation

Morpho works on Python 3.8 or higher and requires Pycairo to run. For Windows users, Morpho and all its basic dependencies, including Pycairo, should be installable via a simple pip command:

pip3 install morpholib

Installation on other platforms has not been well-tested, unfortunately, and does not appear to be as straightforward. For now, I think the best method is to first see if you can install Pycairo separately (for instructions on how to do so, see this), test that the Pycairo installation is working, and then attempt to install Morpho via the above pip command.

Softer requirements

If you want to export animations as MP4s or small-sized GIFs, you will need to install FFmpeg for MP4 and/or Gifsicle for GIF. But if that doesn't matter to you (or if you just want to try out Morpho), you can still preview animations and export them as PNG sequences and large-sized GIFs just using the base installation of Morpho.

Please note that FFmpeg and Gifsicle will need to be added to your PATH environment variable for Morpho to be able to access them by default.

Testing the installation

To see if it installed correctly, try running the following Python code:

import morpholib as morpho
morpho.importAll()
morpho.sample.play()

If you see an animation of a morphing grid appear on your screen, congratulations! Morpho should be installed and working properly.

License

This project is licensed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

morpholib-0.6.1.dev1.tar.gz (189.7 kB view details)

Uploaded Source

Built Distribution

morpholib-0.6.1.dev1-py3-none-any.whl (200.2 kB view details)

Uploaded Python 3

File details

Details for the file morpholib-0.6.1.dev1.tar.gz.

File metadata

  • Download URL: morpholib-0.6.1.dev1.tar.gz
  • Upload date:
  • Size: 189.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.1

File hashes

Hashes for morpholib-0.6.1.dev1.tar.gz
Algorithm Hash digest
SHA256 b419e8df49af7252162d1177bfcaeda679145884ba62001ba2ef497de3ab0d1e
MD5 971ffa78b416db7da175e3e326f0e04b
BLAKE2b-256 d03f6ccae308b20515aac5c7e34c8b3d325528d17ef56b3d6d0ee34d1f602f34

See more details on using hashes here.

File details

Details for the file morpholib-0.6.1.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for morpholib-0.6.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 ccd0723c6440079b349941b849101a7ec103dc114c8c2d790e2a1e9782a01073
MD5 cd1c6a5e5fecfb69ca9d7a48f69f9c4f
BLAKE2b-256 02439d5718dd4dd5056bfcf6b18c6f68c28ba0a28694499c543748244baf42a1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page