made faster and formatted

This commit is contained in:
APEX FIGHT 2025-04-08 22:00:07 -04:00
parent eabf897be6
commit 660f668d22
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"iterationsPerPhoto": 6,
"photoInterval": 2,
"photoInterval": 1,
"targetColor": {
"r": 85,
"g": 73,

View File

@ -51,7 +51,7 @@ function clickRandomPixelOfColor(width, height, image) {
async function clickRandomDrywalls(hits, width, repetitions) {
for (let i = 0; i<repetitions; i++) {
for (let i = 0; i < repetitions; i++) {
let click = Math.floor(Math.random() * hits.length); //get index of random viable pixel
let target = deRasterize(hits[click], width);//get coordinates of random pixel