bg
Background pixel content of a VIEW; can be used to clear the view background to a different color than the sky_color. When this parameter is nonzero, the screen buffer of the view will be set to this pixel value at the beginning of every frame, and the z buffer will be set to the depth value. Use the pixel_for_vec command to set this parameter to a certain color and transparency.
Range:
0x00000000..0xFFFFFFFF
Type:
var LC 8.04
Example (lite-C):
view.bg = pixel_for_vec(COLOR_BLACK,0,8888); // clear view to transparent black
See also:
VIEW, depth, pixel_for_vec, sky_color
► latest
version online