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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file morpholib-0.4.0.dev1.tar.gz
.
File metadata
- Download URL: morpholib-0.4.0.dev1.tar.gz
- Upload date:
- Size: 155.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d55a9269be7f67d6d2e86dea128444a00c0f8889068c4a72f49b77ad0a23e679 |
|
MD5 | eb8c8e848a47e50683c64e0cb035950a |
|
BLAKE2b-256 | 7e17ba6fd8c1c0dcbe4cad174f60f3d01e098bd1adab3a972c07559bbaef5978 |
File details
Details for the file morpholib-0.4.0.dev1-py3-none-any.whl
.
File metadata
- Download URL: morpholib-0.4.0.dev1-py3-none-any.whl
- Upload date:
- Size: 164.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28ee65fca4835916b7f9bde51e3f3784fe44515a160c891ebc3ff2dccaf7ed3d |
|
MD5 | a50743e11b7b4fcb8b63855bf5156658 |
|
BLAKE2b-256 | e6a39cef00e6d34586fd57e35b4dbc9546c0d1a4e898debb632947d27589c3c0 |