292 datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }] |
292 datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }] |
293 }; |
293 }; |
294 var IBUmethodAdapter = new $.jqx.dataAdapter(IBUmethodSource); |
294 var IBUmethodAdapter = new $.jqx.dataAdapter(IBUmethodSource); |
295 |
295 |
296 var ColorMethodData = [ |
296 var ColorMethodData = [ |
297 { id: 0, en: 'Morey', nl: 'Morey' }, |
297 { id: 0, en: 'Morey', nl: 'Morey' }, |
298 { id: 1, en: 'Mosher', nl: 'Mosher' }, |
298 { id: 1, en: 'Mosher', nl: 'Mosher' }, |
299 { id: 2, en: 'Daniels', nl: 'Daniels' } |
299 { id: 2, en: 'Daniels', nl: 'Daniels' }, |
|
300 { id: 3, en: 'Halberstadt', nl: 'Halberstadt' } |
300 ]; |
301 ]; |
301 var ColorMethodSource = { |
302 var ColorMethodSource = { |
302 localdata: ColorMethodData, |
303 localdata: ColorMethodData, |
303 datatype: "array", |
304 datatype: "array", |
304 datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }] |
305 datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }] |
766 } |
797 } |
767 |
798 |
768 |
799 |
769 |
800 |
770 /* |
801 /* |
771 * Kleurwerking naar SRM |
802 * Kleurwerking naar SRM. Niet voor Halberstadt. |
772 */ |
803 */ |
773 function kw_to_srm(colormethod, c) { |
804 function kw_to_srm(colormethod, c) { |
774 |
805 |
775 if (colormethod == 0) // Morey |
806 if (colormethod == 0) // Morey |
776 return 1.4922 * Math.pow(c, 0.6859); |
807 return 1.4922 * Math.pow(c, 0.6859); |
777 if (colormethod == 1) // Mosher |
808 if (colormethod == 1) // Mosher |
778 return 0.3 * c + 4.7; |
809 return 0.3 * c + 4.7; |
779 if (colormethod == 2) // Daniels |
810 if (colormethod == 2) // Daniels |
780 return 0.2 * c + 8.4; |
811 return 0.2 * c + 8.4; |
|
812 if (colormethod == 3) // Halberstadt |
|
813 return 0; |
781 } |
814 } |
782 |
815 |
783 |
816 |
784 |
817 |
785 function kw_to_ebc(colormethod, c) { |
818 function kw_to_ebc(colormethod, c) { |