Repository navigation
Commit 7332d3d
committed
Change opacity without a round trip through HLC
change(.opacity, …) converted the color to HLC and back just to set
the opacity, which shifted the RGB components by up to about 1e-6
(e.g. green 0 became 1.7e-6). Opacity is the same in every color
space, so it now goes through the RGB path. The never reached
.opacity branches of the HSB and HLC helpers are removed.1 parent 9e4459b commit 7332d3d
2 files changed
Lines changed: 28 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
| 507 | + | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
| 519 | + | |
| 520 | + | |
520 | 521 | | |
521 | 522 | | |
522 | 523 | | |
523 | 524 | | |
524 | 525 | | |
525 | | - | |
| 526 | + | |
526 | 527 | | |
527 | 528 | | |
528 | 529 | | |
| |||
540 | 541 | | |
541 | 542 | | |
542 | 543 | | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | 544 | | |
547 | 545 | | |
548 | 546 | | |
| |||
563 | 561 | | |
564 | 562 | | |
565 | 563 | | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | 564 | | |
570 | 565 | | |
571 | 566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments