Contents |
Effect
Draws a bold line (3x3 pixels) between absolute or relative coordinates on a graphic screen supported by Lightpen Graphics (2 to 4).
When two lines intersect, the result will be different from the "normal" LINE, because the color of the new line will not modify the same pixels of the old line.
Syntaxes
- CALL BLINE (STEP(<X1>,<Y1>)-STEP(<X2>,<Y2>))
- CALL BLINE (-STEP(<X2>,<Y2>))
Notes:
- Current cursor coordinates are used as starting coordinates with the second syntax.
- The last color specified before CALL BLINE will be used.
Parameters
STEP can be put before coordinates, to specify relative coordinates to the current cursor position. In this case the values can also be negative.
<X1> is coordinate X of the starting point of the line (0-255)
<Y1> is coordinate Y of the starting point of the line (0-191)
When <X1> and <Y1> are omitted, the coordinates of the last drawn point are used as starting point.
<X2> is coordinate X of the end point of the line (0-255)
<Y2> is coordinate Y of the end point of the line (0-191)
Example
10 COLOR 15,1,7: SCREEN 2 20 _BLINE((0,0)-(255,191)) 30 COLOR 4 40 LINE(40,0)-(40,191) 50 _BLINE((60,0)-(60,191)) 60 COLOR 8 70 _BLINE(STEP(30,-160)-STEP(0,120)) 80 COLOR 13 90 _BLINE(-STEP(50,-70)) 100 GOTO 100