Skip to content

Make the colors used in Canvas Lines, Arcs and Paths non-opaque.#108

Open
smfr wants to merge 1 commit intoWebKit:mainfrom
smfr:smfr/non-opaque-canvas-colors
Open

Make the colors used in Canvas Lines, Arcs and Paths non-opaque.#108
smfr wants to merge 1 commit intoWebKit:mainfrom
smfr:smfr/non-opaque-canvas-colors

Conversation

@smfr
Copy link
Contributor

@smfr smfr commented Mar 9, 2026

This gives all the colors alpha of about 96% alpha.

This is experimental only, to allow for testing.

This gives all the colors alpha of about 96% alpha.
@netlify
Copy link

netlify bot commented Mar 9, 2026

Deploy Preview for webkit-motionmark-preview ready!

Name Link
🔨 Latest commit d344013
🔍 Latest deploy log https://app.netlify.com/projects/webkit-motionmark-preview/deploys/69af2bf8b7b99d0008ea130e
😎 Deploy Preview https://deploy-preview-108--webkit-motionmark-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jrmuizel
Copy link

jrmuizel commented Mar 9, 2026

I get the same score ~8000 in Firefox in this version of canvas lines as in https://browserbench.org/MotionMark1.3/developer.html

In both cases stroke line is being converted to draw rect. So it's not surprising to me that the performance is roughly the same.

@smfr
Copy link
Contributor Author

smfr commented Mar 10, 2026

I was testing Paths, not Lines.

@smfr
Copy link
Contributor Author

smfr commented Mar 10, 2026

On my machine with Firefox 148.0.2 I get a score of 4288 on Paths stock, and 11940 on Paths with alpa, a 2.8x increase.

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

Successfully merging this pull request may close these issues.

2 participants