svn path=/trunk/; revision=103
function setcol(c) {
image.strokeStyle = c
- image.lineWidth = 2
- image_serialize += " stroke " + c
+ if ( c == "#FFF" ) image.lineWidth = 32
+ else image.lineWidth = 4
+ image_serialize += " stroke " + c + " stroke-width " + image.lineWidth
}
setcol("$tpy[color]")
sx=Math.floor(cscaleW * (x - canvas.offsetLeft))
sy=Math.floor(cscaleH * (y - canvas.offsetTop))
} else {
- sx=Math.floor(cscaleW * (x - canvas.offsetLeft + body.scrollLeft))
- sy=Math.floor(cscaleH * (y - canvas.offsetTop + body.scrollTop))
+ sx=Math.floor(cscaleW * (x - canvas.offsetLeft + window.pageXOffset))
+ sy=Math.floor(cscaleH * (y - canvas.offsetTop + window.pageYOffset))
}
image.lineTo( sx, sy )
image.stroke()