Chapter 16. Extended Functions
401
Syntax:
CALL "CONSOLE.FN3" .fcLine RECT%(),ATTRIB%,
COLOR%
Description:
This function draws a full line between two points specified by
RECT%()
according to the attributes specified by
ATTRIB%
and
COLOR%
on the LCD.
Parameter:
RECT%()
Coordinates to define a line
ATTRIB%
Drawing attributes*
COLOR%
Color*
*
COLOR%
is valid only when "0" is set to
ATTRIB%
.
Returned value:
(None)
Run-time errors:
Example:
Drawing a full line starting at the coordinates (3, 5) to (100, 60) in
black
DIM RECT%(3)
RECT%(0)=3 : RECT%(1)=5 : RECT%(2)=100 : RECT%(3)=60
ATTRIB%=.cnColor : COLOR%=.cnBlack
CALL"CONSOLE.FN3".fcLine RECT%(),ATTRIB%,COLOR%
.fcLine
Draw a full line
RECT%(0)
Initial X-coordinate (0
≤
RECT%(0)
≤
199)
RECT%(1)
Initial Y-coordinate (0
≤
RECT%(1)
≤
303)
RECT%(2)
Final X-coordinate (0
≤
RECT%(2)
≤
199)
RECT%(3)
Final Y-coordinate (0
≤
RECT%(3)
≤
303)
.cnColor
0
Draw a line in the color specified by
COLOR%
.cnInvert
1
Draw a line in reverse display in the cur-
rent color
.cnBlack
0
In black
.cnDGray
64
In dark gray
.cnLGray
128
In light gray
.cnWhite
255
In white
Error code
Meaning
05h
Parameter out of the range
F0h
Mismatch parameter number
F1h
Mismatch parameter type
F2h
Insufficient number of array variable elements
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...