in reply to gd, setpixel, and truecolor

First off, make sure you've got a version of CD that supports truecolor.

I still haven't bothered to upgrade, so I have no first hand knowledge of this, but from what I can tell from the C API, you should still use colorClosest.