API Reference > Classes > PRC Graphical Classes > OdPrcDottingPattern Class > OdPrcDottingPattern Methods > setColor Method > OdPrcDottingPattern::setColor Method (double, double, double, bool)
OdPrcDottingPattern::setColor Method (double, double, double, bool)
Syntax
C++
void setColor(double r, double g, double b, bool preventDuplication = false);
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.  
bool preventDuplication = false 
[in] Add new color to the end of color array or search the array to prevent duplication. 

Sets a new color for the line style. This method sets the material identifier to zero. Object must be database resident. 

 

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