Modified /js/modifiableScript.js with resize methods that changes the brush upon window resize. Modified /js/uiScript.js to simulate the manual defacement attack on the '#modifiable' canvas. Change needs to eventually reflect on the '#differences' canvas. Added to index.html's #attackMode selection the option 'Manual Defacement Attack' to deface a QR code by mouse without any specific target to pixel modules. The color selection option is applicable in this attack and the brush size input slider has been added as well to dynamically change the size of the brush. Modified /js/uiScript.js to simulate an automatic attack on only the specified color in correspondence to the 'Automated Single-Color Attack.' Added to index.html's #attackMode selection the option 'Automated Single-Color Attack' to target a single color, either black or white, to simulate a defacing scenario where an attacker may deface a QR code in public with only one tool. The color selection option has been made available in the two colors.
Modified /js/uiScript.js to record and append to '#attackLog' the indicies affected. Modified index.html's sidebar formatting. Added to index.html a collapsable 'Indicies Log' that records the indicies on the pixel module of those attacked and inverted. Modified /js/modifiableScript.js CanvasController's targetColor method.
Updated the drawing to be while mousedown and mouseover.
Updated the drawing to be while mousedown and mouseover.