1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-20 22:05:15 +00:00
qb64/internal/help/LINE.txt
Luke Ceddia b586eafd3b Integrated _BLINEINPUT into regular LINE INPUT for BINARY files
LINE INPUT will now use the faster method if passed a file handle
that has been opened FOR BINARY. As such, the _BLINEINPUT command
has been removed.

qb64.bas now takes advantage of this for reading from '$include files,
at least in Include Manager 1. Some tweaking of internal/source/main.txt
was required to get things into a sane state, so I'm holing off changing
the compiler any further so the auto-builder can make sure everything's
smoothed over.

Note: Everything should still compile as normal; I'm just being overcautious.
2014-07-27 00:06:17 +10:00

34 lines
1.4 KiB
Plaintext

The '''LINE''' statement is used in graphics [[SCREEN (statement)|SCREEN]] modes to create lines or boxes.
{{PageSyntax}}
: LINE [STEP](column1, row1)-[STEP](column2, row2), color%[, [{B|BF}]][, style%]
* Can use [[STEP]] keyword for graphics coordinates relative to a previously placed objects.
* Creates a colored line from coordinate1 to coordinate2 if the box options(B or BF) are omitted. Can be drawn partially offscreen.
* Creates a colored box outline if the '''B''' option is used.
* Creates a color filled box if the '''BF''' option is used.
* Style is any [[INTEGER]] value from 0 to 32767. It creates dashed lines or box outlines. The Box comma is required with style even when not creating a box. The lines are created where the style value's bits are on. '''BF cannot be used with style.'''
* '''LINE can be used in any graphic screen mode, but cannot be used in the default screen mode 0 as it is text only!'''
''Example:'' Creating styled lines and boxes with the LINE statement. Different style values create different dashed line spacing.
{{CodeStart}} '' ''
{{Cl|SCREEN}} 12
{{Cl|LINE}} (100, 100)-(300, 300), 10, , 63 'creates a styled line
{{Cl|LINE}} (100, 100)-(300, 300), 12, B , 255 'creates styled box shape
{{Cl|END}} '' ''
{{CodeEnd}}
''See also:''
* [[SCREEN (statement)|SCREEN]], [[COLOR]]
* [[DRAW]], [[CIRCLE]], [[STEP]]
* [[PSET]], [[PRESET]]
{{PageNavigation}}