Skip to content

Commit be8cee3

Browse files
committed
[css-color] typo
1 parent 3c37e6a commit be8cee3

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

css-color/Overview.bs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4358,7 +4358,6 @@ function gam_P3(RGB) {
43584358

43594359
return RGB.map(function (val) {
43604360
return Math.pow(val, 1/2.6);
4361-
}
43624361
});
43634362
}
43644363

css-color/conversions.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ function gam_P3(RGB) {
6868

6969
return RGB.map(function (val) {
7070
return Math.pow(val, 1/2.6);
71-
}
7271
});
7372
}
7473

css-color/grays.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<html>
2+
<script src="math.js"></script>
3+
<script src="conversions.js"></script>
4+
<script>
5+
// make 7 steps in sRGB, compare to 7 steps in D65-adapted lab
6+
// odd number of steps so we have an exact 50%
7+
8+
for (var i =0; i <7; i++) {
9+
console.log(i>0? 100 * 7 / i: 0);
10+
}
11+
</script>
12+
</html>

0 commit comments

Comments
 (0)