diff --git a/Auto-Image.js b/Auto-Image.js index c7e068f..bb88f7a 100644 --- a/Auto-Image.js +++ b/Auto-Image.js @@ -13,6 +13,7 @@ PAINTING_SPEED_ENABLED: false, AUTO_CAPTCHA_ENABLED: false, // Disabled by default COOLDOWN_CHARGE_THRESHOLD: 1, // Default wait threshold + DRAWING_STYLES: ["normal", "outline", "spiral", "random", "diagonal", "checkerboard"], OVERLAY: { OPACITY_DEFAULT: 0.6, BLUE_MARBLE_DEFAULT: false, @@ -660,6 +661,9 @@ cooldownChargeThreshold: CONFIG.COOLDOWN_CHARGE_THRESHOLD, overlayOpacity: CONFIG.OVERLAY.OPACITY_DEFAULT, blueMarbleEnabled: CONFIG.OVERLAY.BLUE_MARBLE_DEFAULT, + drawingStyle: 'normal', + pixelOrder: null, + lastPixelIndex: 0, } // Placeholder for the resize preview update function @@ -1230,6 +1234,8 @@ imageLoaded: state.imageLoaded, colorsChecked: state.colorsChecked, availableColors: state.availableColors, + drawingStyle: state.drawingStyle, + lastPixelIndex: state.lastPixelIndex, }, imageData: state.imageData ? { @@ -1273,6 +1279,9 @@ restoreProgress: (savedData) => { try { Object.assign(state, savedData.state) + state.drawingStyle = savedData.state.drawingStyle || 'normal'; + state.lastPixelIndex = savedData.state.lastPixelIndex || 0; + state.pixelOrder = null; if (savedData.imageData) { state.imageData = { @@ -1306,6 +1315,8 @@ imageLoaded: state.imageLoaded, colorsChecked: state.colorsChecked, availableColors: state.availableColors, + drawingStyle: state.drawingStyle, + lastPixelIndex: state.lastPixelIndex, }, imageData: state.imageData ? { @@ -2901,6 +2912,7 @@ ${Utils.t("title")} +
+ +
+ +
+ +

+ normal: rows; outline: edges first; spiral: center outward; random: shuffled; diagonal: x+y groups; checkerboard: alternating parity first. +

+
+
+