Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlink authored and sbrin committed Nov 17, 2023
1 parent 7b65463 commit a343453
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export function packColor565(hexColor: string) {

export function inverImageDataWithAlpha(imgData: ImageData) {
const data = imgData.data;
console.log(data[0], data[1], data[2], data[3]);
for (let i = 0; i < data.length; i += 4) {
let [r, g, b, a] = [data[i], data[i + 1], data[i + 2], data[i + 3]];
// if alpha more than 50%
Expand Down

0 comments on commit a343453

Please sign in to comment.