Book Image

Kivy Cookbook

By : Hugo Solis
Book Image

Kivy Cookbook

By: Hugo Solis

Overview of this book

Table of Contents (16 chapters)
Kivy Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding effects


Effects are one of the most important advances in the computer graphics field. The physics engines help create better effects, and they are under continuous improvement. Effects are pleasing to the end user. They change the whole experience.

The kinetic effect is the mechanism that Kivy uses to approach this technology. This effect can be used in diverse applications from the movement of a button to the simulation of real graphical environments. In this recipe, we will review how to set the effect to use it in our apps.

Getting ready

We are going to use some concepts from physics in this recipe, so it's necessary to have the clear basics.

Note

You should start reading about this on Wikipedia at http://en.wikipedia.org/wiki/Acceleration.

How to do it…

As the applications of this effect are as creative as you want, we are going to work directly in Python to set up the effect. Let's follow these steps:

  1. Import the KineticEffect package.

    from kivy.effects.kinetic import KineticEffect
    
  2. Instance...