Skip to content

Commit

Permalink
small improvement again
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowLp174 committed Jul 23, 2023
1 parent 48e8d9b commit e0b3950
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/orderUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export function getIncorrectPixels(client) {

const black = (currentR === 0 && currentG === 0 && currentB === 0);
if ((r === 255 && g === 255 && b === 255) && !black) nonWhiteCount++;
const reset = (((r === 255 && g === 255 && b === 255) && !black));

let priority = getPriority(orderPriority.data[i], orderPriority.data[i + 1], orderPriority.data[i + 2], orderPriority.data[i + 3]);
priority += Math.floor(Math.random() * 10_000); // increase randomness
Expand Down

0 comments on commit e0b3950

Please sign in to comment.