How do I detect if desktop is 256 color?

BlitzMax Forums/BlitzMax Programming/How do I detect if desktop is 256 color?

I might try the `draw some pixels of a given color next to each other and read them back to see if they're a given bit depth` solution.