Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shadow not work #181

Open
prinsun opened this issue Oct 27, 2020 · 0 comments
Open

shadow not work #181

prinsun opened this issue Oct 27, 2020 · 0 comments
Assignees

Comments

@prinsun
Copy link

prinsun commented Oct 27, 2020

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

@jwxbond jwxbond self-assigned this Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants