Skip to content
Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions

Blitz3DBlitzPlusBlitzBasic

Line

Line:Void x1:Int32, y1:Int32, x2:Int32, y2:Int32
Parameter Mode Type Default Description
x1 In Int32 required Horizontal position of the start.
y1 In Int32 required Vertical position of the start.
x2 In Int32 required Horizontal position of the end.
y2 In Int32 required Vertical position of the end.

Description

Draws a line between two points. Both end points are drawn, and the line is made of whole pixels like in the original.

Examples

Graphics 320, 240, 0, 2
SetBuffer BackBuffer()
Cls
For i = 0 To 319 Step 16
	Color i * 255 / 319, 160, 255 - i * 255 / 319
	Line 160, 0, i, 239
Next
Flip
WaitKey

Media

Line

Related Commands

ColorRed, GetColor, Origin, ScanLine

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally