# cdCanvasGetColorPlanes

Definition: | include pGUI.e integer p = cdCanvasGetColorPlanes(cdCanvas canvas)
Description: | Returns the number p, which defines the number of colors supported by the current device as 2p, representing the number of bits by pixel. The cdGetScreenColorPlanes() function is similar, but returns the value for the main screen of the window system, currently Windows only, on other systems returns 0. [DEV]. It is not necessary to have an active canvas to call this function.
pwa/p2js: | Not supported.