A class that defines a multi-line object with a set of vertices. These vertices are relative to canvas (0,0).
This class must be accessed through the iio package.
This function is used to instantiate new instances of the MultiLine class. It must be preceded by the new keyword.
iio.MultiLine( Array vertices )
- creates a multi-line with the given with the vertices. The vertices will be treated as absolute canvas positions (relative to canvas 0,0).
- the array of vertices should be a list of coordinates, defined either in x,y coordinates, or as a Vector.
//create two connected lines var poly = new iio.MultiLine([io.canvas.center, ,50,50 ,200,0]);
The following properties can are attached by the iio Graphics Engine. Note that these properties are 'undefined' by default, so you must define them with their set functions or set their values directly.
.styles.strokeStyle :: Color||Pattern||Gradient
The new data added by the MultiLine class.
.vertices :: Array
- the vertices of this multi-line.
//get a multi-line's vertices var vs = multiLine.vertices; //get a multi-line's second vertex var v = multiLine.vertices;
The following functions can are attached by the iio Graphics Engine.