Difference between revisions of "CanvasDrawLine"
m |
(link to Color parameters) |
||
Line 11: | Line 11: | ||
* «x1», «y1»: The starting point for the line. | * «x1», «y1»: The starting point for the line. | ||
* «x2», «y2»: The ending 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. | + | * «color»: (Optional) The color for the line, either a textual color name or a color integer. See [[Color parameters]] for an enumeration of textual color names and a description of color integers. Defaults to 'Black'. |
* «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>. |
Revision as of 00:46, 3 June 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 Color parameters for an enumeration of textual color names and a description of color integers. 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