shadow fixes

This commit is contained in:
Anton Lavrenov
2016-12-14 12:11:54 -05:00
parent ad8d38d945
commit b855765736
10 changed files with 146 additions and 42 deletions

View File

@@ -180,9 +180,9 @@ suite('Path', function() {
context.closePath();
context.fillStyle = '#fcc';
context.shadowColor = 'maroon';
context.shadowBlur = 2;
context.shadowOffsetX = 10;
context.shadowOffsetY = 10;
context.shadowBlur = 2 * canvas.ratio;
context.shadowOffsetX = 10 * canvas.ratio;
context.shadowOffsetY = 10 * canvas.ratio;
context.fill();
// context.stroke();
compareLayerAndCanvas(layer, canvas, 20);