made faster and formatted
This commit is contained in:
parent
eabf897be6
commit
660f668d22
@ -1,6 +1,6 @@
|
||||
{
|
||||
"iterationsPerPhoto": 6,
|
||||
"photoInterval": 2,
|
||||
"photoInterval": 1,
|
||||
"targetColor": {
|
||||
"r": 85,
|
||||
"g": 73,
|
||||
|
2
main.js
2
main.js
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user