Skip to content

LightColor

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

LightColor

LightColor:Void light:Int32, red:Float32, green:Float32, blue:Float32
Parameter Mode Type Default Description
light In Int32 required Light handle.
red In Float32 required Red part of the light.
green In Float32 required Green part of the light.
blue In Float32 required Blue part of the light.

Description

Sets the color of the light. 255, 255, 255 is full white light, 0, 0, 0 adds nothing. The original accepts values from -255 to 255 where negative values darken what the light touches, which lets you fake shadows.

Related Commands

CreateLight, LightConeAngles, LightMesh, LightRange

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally