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
, andcap
),Bezier
(points
,segments
,dash_lenght
, anddash_offset
,), andMesh
(mode
,vertices
,indices
)The
source
property that applies to all the vertex instructionsThe three set of canvas instructions:
canvas.before
,canvas
, andcanvas.after
The context instructions (and some of their properties)...