Class Line

A line.

Usage:

     -- Create a horizontal line
     local line = Line(0, 10, 20, 10)

Fields

Line.color The color of the line.
Line.size The width of the line.

Constructor

Line:_init (x, y, endX, endY[, color="black"[, lineSize=1]]) Constructs a new Line.


Fields

Line.color
The color of the line.
Line.size
The width of the line.

Constructor

Line:_init (x, y, endX, endY[, color="black"[, lineSize=1]])
Constructs a new Line.

Parameters:

  • x The x coordinate of the new component, relative to its parent.
  • y The y coordinate of the new component, relative to its parent.
  • endX The ending x coordinate of the line.
  • endY The ending y coordinate of the line.
  • color The color of the new component. (default "black")
  • lineSize The width of the line. (default 1)
generated by LDoc 1.4.3 Last updated 2015-02-10 07:20:59