56 plwarn(
"plrgb: function deprecated. Use plscol instead" );
58 if ( plsc->level < 1 )
60 plabort(
"plrgb: Please call plinit first" );
65 plsc->curcolor.r =
MAX( 0,
MIN( 255, (
int) ( 256. * r ) ) );
66 plsc->curcolor.g =
MAX( 0,
MIN( 255, (
int) ( 256. * g ) ) );
67 plsc->curcolor.b =
MAX( 0,
MIN( 255, (
int) ( 256. * b ) ) );
83 plwarn(
"plrgb1: function deprecated. Use plscol instead" );
85 if ( plsc->level < 1 )
87 plabort(
"plrgb1: Please call plinit first" );
90 if ( ( r < 0 || r > 255 ) || ( g < 0 || g > 255 ) || ( b < 0 || b > 255 ) )
92 plabort(
"plrgb1: Invalid color" );
118 plwarn(
"plhls: function deprecated. Use plhlsrgb / plscol instead" );
134 plwarn(
"plwid: function deprecated. Use plwidth instead" );
138 #endif // PL_DEPRECATED
void c_plrgb(PLFLT r, PLFLT g, PLFLT b)
PLDLLIMPEXP void c_plwid(PLINT width)
void c_plhlsrgb(PLFLT h, PLFLT l, PLFLT s, PLFLT *p_r, PLFLT *p_g, PLFLT *p_b)
void c_plhls(PLFLT h, PLFLT l, PLFLT s)
void c_plrgb1(PLINT r, PLINT g, PLINT b)
void plabort(const char *errormsg)
void plwarn(const char *errormsg)