private static kelvinToUInt ( double kelvin ) : |
||
kelvin | double | |
Результат |
private static UInt32 kelvinToUInt(double kelvin)
{
return (UInt32)((kelvin - 1000) / 19000 * MaxUIntValue);
}
private uint colorTemp = kelvinToUInt(2800);