Difference between revisions of "CanvasDrawLine"
m (Included in category image and canvas functions) |
m |
||
Line 14: | Line 14: | ||
* «width»: (Optional) The width of the line, not limited to an integer value. Defaults to 1.0. | * «width»: (Optional) The width of the line, not limited to an integer value. Defaults to 1.0. | ||
* «dash»; The dither style, one of: <code>'Solid', 'Dash', 'Dot', 'DashDot', 'DashDotDot'</code>. | * «dash»; The dither style, one of: <code>'Solid', 'Dash', 'Dot', 'DashDot', 'DashDotDot'</code>. | ||
− | * «startCap», «endCap»: the shape of the line ends, one of: <code>'Flat', 'Square', 'Round', 'Triangular', 'NoAnchor', 'SquareAnchor', 'CircleAnchor', 'DiamondAnchor', 'ArrowAnchor'</code> | + | * «startCap», «endCap»: (Optional) the shape of the line ends, one of: <code>'Flat', 'Square', 'Round', 'Triangular', 'NoAnchor', 'SquareAnchor', 'CircleAnchor', 'DiamondAnchor', 'ArrowAnchor'</code> |
== See also == | == See also == |
Revision as of 23:17, 31 May 2017
New to Analytica 5.0
CanvasDrawLine( canvas, x1, y1, x2, y2, color, width, dash, startCap, endCap )
Draws line on a canvas.
- «canvas» is a canvas obtained from calling the
Canvas()
function, or a canvas context obtained by calling theCanvasContext()
function.
- «x1», «y1»: The starting point for the line.
- «x2», «y2»: The ending point for the line.
- «color»: (Optional) The color for the line, either a textual color name or a color integer. (See CellFill for an enumeration of textual color names). A color integer encodes red, green, blue and optionally alpha as
0x01000000 * alpha + 0x00010000 * red + 0x0000100 * green + 0x000001 * blue
. Defaults to 'Black'. - «width»: (Optional) The width of the line, not limited to an integer value. Defaults to 1.0.
- «dash»; The dither style, one of:
'Solid', 'Dash', 'Dot', 'DashDot', 'DashDotDot'
. - «startCap», «endCap»: (Optional) the shape of the line ends, one of:
'Flat', 'Square', 'Round', 'Triangular', 'NoAnchor', 'SquareAnchor', 'CircleAnchor', 'DiamondAnchor', 'ArrowAnchor'
See also
Comments
Enable comment auto-refresher