Home
last modified time | relevance | path

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

/aoo41x/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()
/aoo41x/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 21 milliseconds