Sets camera clear color (background color, 0-255 RGB).
Takes camera (camera entity handle), r/g/b (red/green/blue 0-255).
Returns nothing.
3D Graphics
Parameters & Returns
Parameters
cameraInt
rInt
gInt
bInt
Returns
Void
Quick Summary
Sets camera clear color (background color, 0-255 RGB).
Takes camera (camera entity handle), r/g/b (red/green/blue 0-255).
Returns nothing.
Technical Exegesis...
Sets camera clear color (background color, 0-255 RGB). Takes camera (camera entity handle), r/g/b (red/green/blue 0-255). Returns nothing. Validates entity is camera type, allocates camera->Camera3D if null, sets camera->clearColor=(r/255, g/255, b/255). Controls background color when framebuffer cleared.
This function sets clear color. Clear color: color used to clear framebuffer before rendering (background color, visible where no geometry rendered), RGB values 0-255 converted to 0.0-1.
Sets camera clear color (background color, 0-255 RGB). Takes camera (camera entity handle), r/g/b (red/green/blue 0-255). Returns nothing. Validates entity is camera type, allocates camera->Camera3D if null, sets camera->clearColor=(r/255, g/255, b/255). Controls background color when framebuffer cleared.
This function sets clear color. Clear color: color used to clear framebuffer before rendering (background color, visible where no geometry rendered), RGB values 0-255 converted to 0.0-1.0 floats (clearColor.x=r/255.0f, etc). Clear mode: clear color only used if clsColor flag enabled (see b3dCameraClsMode, default typically enabled), if clsColor disabled, framebuffer retains previous frame contents (motion blur, accumulation effects). Use cases: (1) Sky color (blue for outdoor, black for space), (2) Fog color matching (clear color matches fog for seamless horizon), (3) Stylistic (colored backgrounds for artistic effects), (4) UI (solid background for menus, HUDs), (5) Green screen (chroma key for compositing). Common pattern: b3dCameraClsColor(camera, 135, 206, 235) for sky blue, b3dCameraClsColor(camera, 0, 0, 0) for black, b3dCameraClsColor(camera, 255, 255, 255) for white. Typical values: outdoor sky (light blue 135,206,235), space (black 0,0,0), indoor (gray 128,128,128), stylized (custom colors). Fog matching: set clear color same as fog color for seamless distant fading (objects fade to fog color, background is fog color, no visible seam at horizon). Camera allocation: if camera->camera==nullptr, allocates new Camera3D. Related: b3dCameraClsMode enables/disables color clearing, b3dCameraFogColor sets fog color (should match clear color), b3dCreateCamera creates camera entity.