Book Image

Kivy - Interactive Applications and Games in Python

By : Roberto Ulloa
Book Image

Kivy - Interactive Applications and Games in Python

By: Roberto Ulloa

Overview of this book

Table of Contents (13 chapters)
Kivy – Interactive Applications and Games in Python Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


This chapter explained the necessary concepts to understand the use of the canvas. We covered the use of vertex and context instructions, and how to manipulate the order of the execution of instructions. We covered how to deal with the transformation of canvas, either reversing all the transformations or using RelativeLayout. The following is the whole set of components we learnt to use, in this chapter:

  • The vertex instructions (and many of their respective properties): Rectangle (pos, size), Ellipse (pos, size, angle_start, angle_end, segments), Triangle (points), Quad (points), Point (points, pointsize), Line (points, ellipse, circle, rectangle, width, close, dash_lenght, dash_offset, and cap), Bezier (points, segments, dash_lenght, and dash_offset,), and Mesh (mode, vertices, indices)

  • The source property that applies to all the vertex instructions

  • The three set of canvas instructions: canvas.before, canvas, and canvas.after

  • The context instructions (and some of their properties)...