Reply to Visual Basic Code
If you don't have an account, just leave the password field blank.
I have this.
Select Case pMax!
Case pRed
pHue = (pGreen - pBlue) / (pMax - pMin)
Case pGreen
pHue = 2 + (pBlue - pRed) / (pMax - pMin)
Case pBlue
pHue = 4 + (pRed - pGreen) / (pMax - pMin)
End Select
I do not know what mean that sign at
the end of pMax (!), and neither when is selected each case.
Select Case pMax!
Case pRed
pHue = (pGreen - pBlue) / (pMax - pMin)
Case pGreen
pHue = 2 + (pBlue - pRed) / (pMax - pMin)
Case pBlue
pHue = 4 + (pRed - pGreen) / (pMax - pMin)
End Select
I do not know what mean that sign at
the end of pMax (!), and neither when is selected each case.