402
Syntax:
CALL "CONSOLE.FN3" .fcDtLine RECT%(),PTN%,
ATTRIB%,COLOR%
Description:
This function draws a dotted line specified by
PTN%
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
PTN%
2-byte (16-bit) dot pattern (The MSB is the head of
the pattern.)
If "0" is set to
ATTRIB%
: In the 16 bits, all bits already set to "1" will
be manipulated in the color specified by
COLOR%
, from the MSB to
LSB.
If "1" is set to
ATTRIB%
: In the 16 bits, all bits already set to "1" will
be manipulated in the reversed display of the current color, from the
MSB to LSB.
(Example) If
PTN%
=&HCCCC
In hex.
C C C C
In binary
1100110011001100
BBWWBBWWBBWWBBWW
...
(where B is black and W is white)
The above 16-bit pattern is repeated to produce a dotted line.
ATTRIB%
Drawing attributes*
COLOR%
Color*
*
COLOR%
is valid only when "0" is set to
ATTRIB%
.
Returned value:
(None)
.fcDtLine
Draw a dotted 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
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...