.horline Method
Function: |
Draws a horizontal line. |
Syntax: |
lcd.horline(x1 as word, x2 as word, y as word) |
Returns: |
--- |
See Also: |
Lines, Rectangles, and Fills, lcd.rectangle, lcd.filledrectangle, lcd.fill |
Part |
Description |
x1 |
X coordinate of the first point. Value range is 0 to lcd.width - 1. |
x2 |
X coordinate of the second point. Value range is 0 to lcd.width - 1. |
y |
Y coordinates of the first and second points. Value range is 0 to lcd.height - 1. |
Details
The line is drawn with the specified line width (lcd.linewidth) and "pen" color (lcd.forecolor). Drawing horizontal or vertical (lcd.verline) lines is more efficient than drawing generic lines (lcd.line), and should be used whenever possible.
The display panel must be enabled (lcd.enabled = 1 — YES) for this method to work.