Home
last modified time | relevance | path

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

/trunk/main/tools/source/generic/
H A Dcolor.cxx184 sal_uInt8 cDelta = cMax - cMin; in RGBtoHSB() local
188 nSat = cDelta * 100 / cMax; in RGBtoHSB()
200 dHue = (double)( c[1] - c[2] ) / (double)cDelta; in RGBtoHSB()
204 dHue = 2.0 + (double)( c[2] - c[0] ) / (double)cDelta; in RGBtoHSB()
208 dHue = 4.0 + (double)( c[0] - c[1] ) / (double)cDelta; in RGBtoHSB()
/trunk/main/cui/source/dialogs/
H A Dcolorpicker.cxx90 double cDelta = dV - std::min( dR, std::min( dG, dB ) ); in RGBtoHSV() local
94 dS = cDelta / dV; in RGBtoHSV()
104 dH = ( dG - dB ) / cDelta; in RGBtoHSV()
108 dH = 2.0 + ( dB - dR ) / cDelta; in RGBtoHSV()
112 dH = 4.0 + ( dR - dG ) / cDelta; in RGBtoHSV()

Completed in 19 milliseconds