Add Processing-style showcase example#2
Merged
Merged
Conversation
This provides a standalone single-runner Xlib client with clickable tabs cycling through primitives, analog clock, Bezier curves, fractal tree, and waves scenes. Drives XFillPolygon, XDrawLines, XFillArc, XDrawString, pointer/key input, and timed redraws against the libX11-compat. Promote XFillPolygon from a WARN_UNIMPLEMENTED stub to a scanline-fill implementation so the primitives and tree scenes render. Validates the Complex/Nonconvex/Convex shape and CoordModeOrigin/CoordModePrevious mode arguments, supports both EvenOdd and Winding fill rules, and honors the active GC clip stack.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Standalone single-runner Xlib client with clickable tabs cycling through primitives, analog clock, Bezier curves, fractal tree, and waves scenes. Drives XFillPolygon, XDrawLines, XFillArc, XDrawString, pointer/key input, and timed redraws against the libX11-compat SDL2 backend.
Promote XFillPolygon from a WARN_UNIMPLEMENTED stub to a scanline-fill implementation so the primitives and tree scenes render. Validates the Complex/Nonconvex/Convex shape and CoordModeOrigin/CoordModePrevious mode arguments, supports both EvenOdd and Winding fill rules, and honors the active GC clip stack.
Summary by cubic
Adds a tabbed Processing-style showcase example and implements a scanline
XFillPolygonso polygon scenes render correctly with clipping, fill rules, andGXinvert.processingexample: single-runner with tabs (primitives, clock, Bezier, tree, waves). Uses pointer/key input (Esc/q, 1–5) and timed redraws. ExercisesXFillPolygon,XDrawLines,XFillArc, andXDrawString. Added to build and docs.XFillPolygon: scanline fill with validation of shape (Complex/Nonconvex/Convex) and coord modes (Origin/Previous), supports EvenOdd and Winding, honors the GC clip stack, and handlesFillSolid(includingGXinvertspan inversion) andFillOpaqueStippled.XFillRectanglesand polygon spans to implementGXinvert.Written for commit d1e19e3. Summary will update on new commits.