Table of contents
The FlipFX module allows printing a string with a flipping character effect.
You can find more text printing effects here.
Before the given string is printed, a random one with the same length will be created and printed. With a user-defined delay the characters will flip randomly until all of them are identical with the given one.
First of all, the module must be imported.
import flipfx
Notice that the delay must be given in milliseconds.
The method requires only two arguments, the string that should be printed and the delay between flipping the characters:
flipfx.charflip(string, delay=80)
The following code
import flipfx
flipfx.charflip("This is an example how the module works.", 80)
produces this output:
In order to use FlipFX, the Python framework must be installed on the system.
Depending on which version of the framework you are using:
- Python 2.x (version 2.7 or higher is recommended, may also work with earlier versions)
- Python 3.x (version 3.2 or higher is recommended, may also work with earlier versions)
Any suggestions, questions, bugs to report or feedback to give?
You can contact me by sending an email to [email protected] or by opening a GitHub issue (which I would prefer if you have a GitHub account).
- The project name is an abbreviation for Flip Effects.