August 2015
Intermediate to advanced
246 pages
4h 21m
English
The rotation, translation, and scaling canvas in Kivy is relatively easy with the use of matrices. In this recipe, we will create a traditional button and rotate its canvas.
Again the mathematics are important in graphics, so we should at least do a Wikipedia check about the matrix concept to get a real sense about what is happening with the canvas.
For this recipe, follow these steps:
canvas.before, push the matrix onto the context's matrix stack.canvas.after, pop the matrix from the context's ...Read now
Unlock full access