shadowOffsetX shifting of shadow Horizontally on Canvas
var my_canvas=$('#my_canvas').get(0) var gctx = my_canvas.getContext("2d"); gctx.beginPath() gctx.rect(20,20,150,100); gctx.lineWidth=8; gctx.shadowColor = 'black'; gctx.shadowOffsetX=offsetx; gctx.shadowOffsetY=0; gctx.shadowBlur = 15; gctx.stroke();
This article is written by plus2net.com team.
|