(l, a, b)
| 1354 | return d3_rgb(d3_xyz_rgb(3.2404542 * x - 1.5371385 * y - .4985314 * z), d3_xyz_rgb(-.969266 * x + 1.8760108 * y + .041556 * z), d3_xyz_rgb(.0556434 * x - .2040259 * y + 1.0572252 * z)); |
| 1355 | } |
| 1356 | function d3_lab_hcl(l, a, b) { |
| 1357 | return d3_hcl(Math.atan2(b, a) * d3_degrees, Math.sqrt(a * a + b * b), l); |
| 1358 | } |
| 1359 | function d3_lab_xyz(x) { |
| 1360 | return x > .206893034 ? x * x * x : (x - 4 / 29) / 7.787037; |
| 1361 | } |