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

Blitz3DBlitzPlusBlitzBasic

Cls

Cls:Void

Description

Clears the current buffer with the color set by ClsColor. Call it at the start of every frame when you redraw the whole picture.

Examples

Graphics 320, 240, 0, 2
SetBuffer BackBuffer()
ClsColor 40, 90, 160
Cls
Color 255, 255, 255
Text 160, 120, "Cls cleared this to blue", 1, 1
Flip
WaitKey

Media

Cls

Related Commands

ClsColor, Color

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally