Home
last modified time | relevance | path

Searched refs:fHue (Results 1 – 1 of 1) sorted by relevance

/aoo42x/main/oox/source/drawingml/
H A Dcolor.cxx553 … double fHue = static_cast< double >( mnC1 ) / MAX_DEGREE * 6.0; // interval [0.0, 6.0) in toRgb() local
554 if( fHue <= 1.0 ) { fR = 1.0; fG = fHue; } // red...yellow in toRgb()
555 else if( fHue <= 2.0 ) { fR = 2.0 - fHue; fG = 1.0; } // yellow...green in toRgb()
556 else if( fHue <= 3.0 ) { fG = 1.0; fB = fHue - 2.0; } // green...cyan in toRgb()
557 else if( fHue <= 4.0 ) { fG = 4.0 - fHue; fB = 1.0; } // cyan...blue in toRgb()
558 else if( fHue <= 5.0 ) { fR = fHue - 4.0; fB = 1.0; } // blue...magenta in toRgb()
559 else { fR = 1.0; fB = 6.0 - fHue; } // magenta...red in toRgb()

Completed in 30 milliseconds