module ColorUtil::CMF

Defined in:

colorutil/cmf.cr

Constant Summary

BLUE = [0.0062, 0.0161, 0.04, 0.0906, 0.1802, 0.3088, 0.467, 0.6152, 0.7638, 0.8778, 0.9755, 1.0019, 0.9996, 0.9139, 0.8297, 0.7417, 0.6134, 0.472, 0.3495, 0.2564, 0.1819, 0.1307, 0.091, 0.058, 0.0357, 0.02, 0.0095, 0.0007, -0.0043, -0.0064, -0.0082, -0.0094, -0.0097, -0.0097, -0.0093, -0.0087, -0.008, -0.0073, -0.0063, -0.00537, -0.00445, -0.00357, -0.00277, -0.00208, -0.0015, -0.00103, -0.00068, -0.000442, -0.000272, -0.000141, -5.49e-5, -2.2e-6, 2.37e-5, 2.86e-5, 2.61e-5, 2.25e-5, 1.82e-5, 1.39e-5, 1.03e-5, 7.38e-6, 5.22e-6, 3.67e-6, 2.56e-6, 1.76e-6, 1.2e-6, 8.17e-7, 5.55e-7, 3.75e-7, 2.54e-7, 1.71e-7, 1.16e-7, 7.85e-8, 5.31e-8, 3.6e-8, 2.44e-8, 1.65e-8, 1.12e-8, 7.53e-9, 5.07e-9, 3.4e-9, 2.27e-9, 1.5e-9, 9.86e-10, 6.39e-10, 4.07e-10, 2.53e-10, 1.52e-10, 8.64e-11, 4.42e-11]
GREEN = [-0.0004, -0.001, -0.0025, -0.0059, -0.0119, -0.0201, -0.0289, -0.0338, -0.0349, -0.0276, -0.0169, 0.0024, 0.0283, 0.0636, 0.1082, 0.1617, 0.2201, 0.2796, 0.3428, 0.4086, 0.4716, 0.5491, 0.626, 0.7097, 0.7935, 0.8715, 0.9477, 0.9945, 1.0203, 1.0375, 1.0517, 1.039, 1.0029, 0.9698, 0.9162, 0.8571, 0.7823, 0.6953, 0.5966, 0.5063, 0.4203, 0.336, 0.2591, 0.1917, 0.1367, 0.0938, 0.0611, 0.0371, 0.0215, 0.0112, 0.0044, 7.8e-5, -0.001368, -0.001988, -0.002168, -0.002006, -0.001642, -0.001272, -0.000947, -0.000683, -0.000478, -0.000337, -0.000235, -0.000163, -0.000111, -7.48e-5, -5.08e-5, -3.44e-5, -2.34e-5, -1.59e-5, -1.07e-5, -7.23e-6, -4.87e-6, -3.29e-6, -2.22e-6, -1.5e-6, -1.02e-6, -6.88e-7, -4.65e-7, -3.12e-7, -2.08e-7, -1.37e-7, -8.8e-8, -5.53e-8, -3.36e-8, -1.96e-8, -1.09e-8, -5.7e-9, -2.77e-9]
RED = [0.0015, 0.0038, 0.0089, 0.0188, 0.035, 0.0531, 0.0702, 0.0763, 0.0745, 0.0561, 0.0323, -0.0044, -0.0478, -0.097, -0.1586, -0.2235, -0.2848, -0.3346, -0.3776, -0.4136, -0.4317, -0.4452, -0.435, -0.414, -0.3673, -0.2845, -0.1855, -0.0435, 0.127, 0.3129, 0.5362, 0.7722, 1.0059, 1.271, 1.5574, 1.8465, 2.1511, 2.425, 2.6574, 2.9151, 3.0779, 3.1613, 3.1673, 3.1048, 2.9462, 2.7194, 2.4526, 2.17, 1.8358, 1.5179, 1.2428, 1.007, 0.7827, 0.5934, 0.4442, 0.3283, 0.2394, 0.1722, 0.1221, 0.0853, 0.0586, 0.0408, 0.0284, 0.0197, 0.0135, 0.00924, 0.00638, 0.00441, 0.00307, 0.00214, 0.00149, 0.00105, 0.000739, 0.000523, 0.000372, 0.000265, 0.00019, 0.000136, 9.84e-5, 7.13e-5, 5.18e-5, 3.77e-5, 2.76e-5, 2.03e-5, 1.49e-5, 1.1e-5, 8.18e-6, 6.09e-6, 4.55e-6]
SAMPLE_COUNT = 1 + ((STOP_NM - START_NM) // STEP_NM)
START_NM = 390
STEP_NM = 5
STOP_NM = 830