⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@Mythie
Copy link
Contributor

@Mythie Mythie commented Jan 24, 2026

Two bugs were causing opacity to not work:

  1. Swapped CA/ca parameters in registerGraphicsStateForOpacity:

    • CA (uppercase) is for stroking operations (borders)
    • ca (lowercase) is for non-stroking operations (fills, text)
  2. Missing '/' prefix when setting graphics state:

    • setGraphicsState expects '/GS0' but was receiving 'GS0'

Added comprehensive opacity tests for all drawing methods including
rectangles, circles, ellipses, lines, text, paths, and images.

Resolves #4

image

Two bugs were causing opacity to not work:

1. Swapped CA/ca parameters in registerGraphicsStateForOpacity:
   - CA (uppercase) is for stroking operations (borders)
   - ca (lowercase) is for non-stroking operations (fills, text)

2. Missing '/' prefix when setting graphics state:
   - setGraphicsState expects '/GS0' but was receiving 'GS0'

Added comprehensive opacity tests for all drawing methods including
rectangles, circles, ellipses, lines, text, paths, and images.
@vercel
Copy link
Contributor

vercel bot commented Jan 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
core Ready Ready Preview, Comment Jan 24, 2026 8:14pm

@Mythie Mythie merged commit 71701ec into main Jan 24, 2026
4 of 5 checks passed
@yusifaliyevpro
Copy link

Thanks for fix

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.

The drawText opacity option does not work.

3 participants