display_set_colordepth(coldepth)

From ENIGMA
Jump to navigation Jump to search

Description

Sets the color depth of the display, in bits, 16 is high color and 32 is full color. Color depth of a display basically means how many bits are used to represent the color each pixel, and while a smaller bit depth may give lower quality it may also increase the speed at which the game can run.

Parameters

Parameter Data Type Description
coldepth integer color depth in bits, 16 is high color, and 32 is full color

Return Values

boolean: Returns whether the call was successful.

Example Call

// demonstrates setting the display color depth to full color
display_set_colordepth(32);