Skip to content

Commit

Permalink
Update bezier.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Artoria2e5 authored and gka committed Jan 27, 2022
1 parent a0245db commit 2a543d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator/bezier.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const bezier = function(colors) {
row = binom_row(n);
I = function (t) {
const u = 1 - t;
const lab = ([0, 1, 2].map((i) => labs.reduce((sum, el, j) => (sum + row[j] * u ** (n - 1) * t ** n * el[i]), 0)))
const lab = ([0, 1, 2].map((i) => labs.reduce((sum, el, j) => (sum + row[j] * u ** (n - j) * t ** j * el[i]), 0)))
return new Color(lab, 'lab');
};
} else {
Expand Down

0 comments on commit 2a543d1

Please sign in to comment.