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

Blitz3DBlitzPlusBlitzBasic

Rect

Rect:Void x:Int32, y:Int32, width:Int32, height:Int32, solid:Int32=1
Parameter Mode Type Default Description
x In Int32 required Horizontal position of the left side.
y In Int32 required Vertical position of the top.
width In Int32 required Width in pixels.
height In Int32 required Height in pixels.
solid In Int32 1 1 fills the rectangle, 0 draws only the outline. Defaults to 1.

Description

Draws a rectangle.

Examples

Graphics 320, 240, 0, 2
SetBuffer BackBuffer()
For frame = 0 To 59
	Cls
	Color 255, 255, 255
	Rect 20, 20, 280, 200, 0
	Color 255, 160, 0
	Rect 30 + frame * 3, 90, 40, 60, 1
	Flip
Next

Media

Rect

Related Commands

Oval, Plot, ScanLine, Viewport

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally