Difference between revisions of "CanvasDrawLine"
m (Included in category image and canvas functions) |
(swapXY) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Image and canvas functions]] | [[Category:Image and canvas functions]] | ||
+ | {{ReleaseBar}} | ||
''New to [[Analytica 5.0]]'' | ''New to [[Analytica 5.0]]'' | ||
− | == CanvasDrawLine( canvas, x1, y1, x2, y2'', color, width, dash, startCap, endCap'' ) == | + | == CanvasDrawLine( canvas, x1, y1, x2, y2'', color, width, dash, startCap, endCap{{Release|5.2||, swapXY}}'' ) == |
Draws line on a canvas. | Draws line on a canvas. | ||
Line 11: | Line 12: | ||
* «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>. | ||
− | * «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>{{Release|5.2|| |
+ | * «swapXY»: (Optional) swap the «x1»,«x2» parameters with the «y1»,«y2» parameters.}} | ||
== See also == | == See also == |
Latest revision as of 22:21, 15 March 2019
Release: |
4.6 • 5.0 • 5.1 • 5.2 • 5.3 • 5.4 • 6.0 • 6.1 • 6.2 • 6.3 • 6.4 • 6.5 |
---|
New to Analytica 5.0
CanvasDrawLine( canvas, x1, y1, x2, y2, color, width, dash, startCap, endCap, swapXY )
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'
- «swapXY»: (Optional) swap the «x1»,«x2» parameters with the «y1»,«y2» parameters.
See also
Comments
Enable comment auto-refresher