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 ...

Get Kivy – Interactive Applications and Games in Python - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.