Skip to content

Commit

Permalink
[spaces/rec2100-hlg][editorial] Remove comment to closed issue #190
Browse files Browse the repository at this point in the history
  • Loading branch information
svgeesus committed Aug 26, 2024
1 parent 6332f3a commit 74acd8c
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 1 deletion.
72 changes: 72 additions & 0 deletions apps/blackwhite/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
body {
font: 100%/1.5 system-ui, sans-serif;
margin: 0;
}

fieldset {
display: flex;
flex-wrap: wrap;
gap: 2em;
border: 1px solid hsl(220 10% 90%);
border-radius: .2em;
}

h1 {
padding: 2rem;
margin: 0;
background: hsl(180 50% 50%);
color: hsl(0 0% 20% / .5);
letter-spacing: -.03em;
font-size: 300%;
}

h1 .black {
color: black;
}

h1 .white {
color: white;
}

main {
padding: 1em;
}

#colors {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(5ch, 1fr));
gap: .3em;
margin-top: 1em;

}

#colors > div {
padding: .3em .5em;
border-radius: 1px;
}

[data-order="l"] :is(#colors > div) {
order: var(--l);
}

[data-order="c"] :is(#colors > div) {
order: var(--c);
}

[data-order="h"] :is(#colors > div) {
order: var(--h);
}

.show-changes .changed {
outline: 2px dashed orange;
outline-offset: 1px;
box-shadow: 0 0 0 4px hsl(0 0% 40%);
}

#previous_algo:empty::before {
content: "previous";
}

#current_algo:empty::before {
content: "current algorithm";
}
1 change: 0 additions & 1 deletion src/spaces/rec2100-hlg.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import RGBColorSpace from "../RGBColorSpace.js";
import REC2020Linear from "./rec2020-linear.js";
import {spow} from "../util.js";

// FIXME see https://github.com/LeaVerou/color.js/issues/190

const a = 0.17883277;
const b = 0.28466892; // 1 - (4 * a)
Expand Down

0 comments on commit 74acd8c

Please sign in to comment.