Skip to content

shadow not work #181

@prinsun

Description

@prinsun
var canvas = createCanvas();
var ctx = canvas.getContext('2d');

ctx.fillStyle = '#0ff';
ctx.fillRect(0, 0, canvas.width, canvas.height);

ctx.shadowBlur = 4.0;
ctx.shadowColor = 'red';
ctx.shadowOffsetX = 2.0;
ctx.shadowOffsetY = 2.0;
ctx.lineWidth = 2;
ctx.strokeStyle = 'yellow';
ctx.strokeRect(20, 60, 100, 100);
ctx.fillStyle = 'yellow';
ctx.font = '40px Georgia';
ctx.fillText('Hello Wolrd', 20, 210);

Simulator Screen Shot - iPhone 8 - 2020-10-27 at 11 36 58

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions