Summary
In this chapter we introduced many topics related to the use of the canvas. We covered the use of vertex and context instructions and how to manipulate the order of execution of instructions. You learned how to deal with transformation of the Canvas
, either reversing all the transformations or using RelativeLayout
. The following is a summary of components that you learned to use in this chapter:
The
VertexInstructions
subclasses (and some of its properties):Rectangle
(pos
andsize
),Ellipse
(pos
,size
,angle_start
,angle_end
, andsegments
),Triangle
(points
),Quad
(points
),Point
(points
andpointsize
),Line
(points
,ellipse
,circle
,rectangle
,width
,close
,dash_lenght
,dash_offset
, andcap
),Bezier
(points
,segments
,dash_lenght
, anddash_offset
), andMesh
(mode
,vertices
, andindices
)The
source
property ofVertexInstructions
base classThe three
Canvas
instances of theWidget
:canvas.before
,canvas
, andcanvas.after
The context instructions (with some of their properties):
Color...