svn path=/trunk/; revision=131
stx=relX(x), sty=relY(y)
- document.getElementsByName("penwidth").forEach(
- function(x, y, z){ if (x.checked) setstroke(x.value); }
- );
- document.getElementsByName("color").forEach(
- function(x, y, z){ if (x.checked) setcol(x.value); }
- );
+ setstroke(document.querySelector('input[name="penwidth"]:checked').value);
+ setcol(document.querySelector('input[name="color"]:checked').value);
image.beginPath()
draw(x, y) // why must this not use relative Coords ???