179 * Kleurwerking naar SRM |
179 * Kleurwerking naar SRM |
180 */ |
180 */ |
181 function kw_to_srm($colormethod, $c) { |
181 function kw_to_srm($colormethod, $c) { |
182 |
182 |
183 if ($colormethod == "Morey") |
183 if ($colormethod == "Morey") |
184 return 1.49 * pow($c, 0.69); |
184 return 1.4922 * pow($c, 0.6859); |
185 if ($colormethod == "Mosher") |
185 if ($colormethod == "Mosher") |
186 return 0.3 * $c + 4.7; |
186 return 0.3 * $c + 4.7; |
187 if ($colormethod == "Daniels") |
187 if ($colormethod == "Daniels") |
188 return 0.2 * $c + 8.4; |
188 return 0.2 * $c + 8.4; |
189 } |
189 } |