Skip to content
Claude edited this page Oct 27, 2026 · 1 revision

Colors

The 3D commands that take a color (EntityColor, BrushColor, VertexColor, LightColor, AmbientLight, CameraClsColor, CameraFogColor, BSPAmbientLight and the color of LightMesh) take floats from 0 to 255, so programs that pass whole numbers work as before. Vertex colors are stored as 16-bit floats (also on the GPU) and not as one byte per part, so VertexColor followed by VertexRed, VertexGreen, VertexBlue and VertexAlpha returns what was set (limited to 0 to 255, and 0 to 1 for alpha) to within about 0.1 of the 0 to 255 scale and LightMesh adds light without rounding the colors in between. The 2D commands (Color, ClsColor, GetColor and ColorRed, ColorGreen, ColorBlue) work on pixels and stay whole numbers.

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally