Skip to content

CameraClsColor

Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions
Blitz3D

CameraClsColor

CameraClsColor:Void camera:Int32, red:Float32, green:Float32, blue:Float32
Parameter Mode Type Default Description
camera In Int32 required Camera handle.
red In Float32 required Red part, 0 to 255.
green In Float32 required Green part, 0 to 255.
blue In Float32 required Blue part, 0 to 255.

Description

Sets the color this camera clears the buffer to before it draws. The default is black. Each part is clamped to 0 through 255. It only matters while CameraClsMode leaves color clearing on, which it does by default.

Examples

Graphics3D 320, 240, 0, 2
SetBuffer BackBuffer()
camera = CreateCamera()
CameraClsColor camera, 30, 80, 170
light = CreateLight()
RotateEntity light, 45, 45, 0
ball = CreateSphere(16)
PositionEntity ball, 0, 0, 3
EntityColor ball, 250, 200, 60
RenderWorld
Flip
WaitKey

Media

CameraClsColor

Related Commands

CameraClsMode, CameraCulling, CameraCullingSource, CameraFogColor, CameraFogMode, CameraFogRange, CameraProject, CameraProjMode

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally