move NEED_PALETTE to plot3d.c
split set_rgbcolor into set_rgbcolor_const and set_rgbcolor_var