Skip to content

tests: add CGContext graphics state tests - #33

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/cgcontext-state
Open

tests: add CGContext graphics state tests#33
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/cgcontext-state

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

Adds a gnustep-tests suite for CGContext graphics state under Tests/opal, checking the CTM of a bitmap context (identity initially, and after translate and scale), that saving and restoring the graphics state restores the CTM, that clipping confines a fill to the clip rect (sampling a pixel inside and outside), and that a global alpha premultiplies the fill. Expected values were checked against Apple CoreGraphics on a macOS runner. All checks pass; no divergences found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant