API Reference > Classes > PRC Graphical Classes > OdPrcRgbColor Class > OdPrcRgbColor Methods > OdPrcRgbColor::set Method
OdPrcRgbColor::set Method
Syntax
C++
OdResult set(double r, double g, double b);
Parameters 
Description 
double r 
[in] A new red component value to be set. 0-1 range.  
double g 
[in] A new green component value to be set. 0-1 range.  
double b 
[in] A new blue component value to be set. 0-1 range.
 

eOk if new component values were successfully set or an appropriate error code in the other case.

Sets new values of the color components. 

 

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.