API Reference > Classes > PRC Graphical Classes > OdPrcRgbColor Class
OdPrcRgbColor Class
OdPrcRgbColor
Syntax
C++
class OdPrcRgbColor;

PrcRgbColor.h

 

Class representing a color defined with 3 components: red, green, blue.

 
Name 
Description 
 
This is the overview for the OdPrcRgbColor constructor overload. 
 
Name 
Description 
 
b 
Retrieves the current blue component value.  
 
g 
Retrieves the current green component value.  
 
get 
Retrieves the values of the color object components.
 
 
Retrieves the true color of the RGB color object.  
 
r 
Retrieves the current red component value.  
 
set 
Sets new values of the color components.
 
 
setB 
Sets a new blue component value. 0-1 range.
 
 
setG 
Sets a new green component value. 0-1 range.
 
 
setR 
Sets a new red component value.
 
 
Name 
Description 
 
= 
An assignment operator for the RGB color object.  
 
== 
Compare operator for the color.
 
Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.