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

Blitz3DBlitzPlusBlitzBasic

Origin

Origin:Void x:Int32, y:Int32
Parameter Mode Type Default Description
x In Int32 required Horizontal position of the new origin in the buffer.
y In Int32 required Vertical position of the new origin in the buffer.

Description

Moves the point that counts as 0, 0 for everything you draw after it. Shapes, text and images move with it, the viewport does not.

Examples

Graphics 320, 240, 0, 2
SetBuffer BackBuffer()
Cls
Color 255, 80, 80
Rect 0, 0, 40, 40, 1
Origin 160, 120
Color 80, 255, 80
Rect 0, 0, 40, 40, 1
Color 255, 255, 255
Line -100, 0, 100, 0
Line 0, -100, 0, 100
Flip
WaitKey

Media

Origin

Related Commands

GetColor, Line, Oval, Plot

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally