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

Support hsla color annotation #37

Open
CAYdenberg opened this issue Nov 6, 2023 · 0 comments
Open

Support hsla color annotation #37

CAYdenberg opened this issue Nov 6, 2023 · 0 comments

Comments

@CAYdenberg
Copy link

I realize this is probably an issue with canvaskit-wasm, but still it would be awesome if it worked (perhaps by inlcluding an additional small dependency). All the major browsers now support hsla, and all the other color annotations I tried worked (inc. rgba and hsl).

Reproduction steps:

const img1 = createCanvas(100, 100);
const ctx = img1.getContext("2d");
ctx.fillStyle = "hsla(0, 100%, 50%, 50%)";
ctx.fillRect(10, 10, 200 - 20, 200 - 20);
await Deno.writeFile("image.png", canvas.toBuffer());
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

1 participant