CanvasDrawLine

Revision as of 23:17, 31 May 2017 by Lchrisman (talk | contribs)


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 the CanvasContext() 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


You are not allowed to post comments.