jakiestfu / Blur.js

blur.js is a jQuery plugin that produces psuedo-transparent blurred elements over other elements.
924 stars 212 forks source link

about the size of the img generated #43

Open xingxingted opened 9 years ago

xingxingted commented 9 years ago

hi, i wanna know why the code below is like this: if(options.overlay != false) { ctx.beginPath(); ctx.rect(0, 0, tempImg.width, tempImg.width); ctx.fillStyle = options.overlay; ctx.fill(); } my point is that why u draw a rectrangle using the img'width to make it a squre?