Tk Source Code

View Ticket
Login
Ticket UUID: 3bfa5eb4bd69e394c67dc6c017230179984a8a49
Title: Aqua: add stipple and tile support
Type: Patch Version: core-8-6-branch
Submitter: chrstphrchvz Created on: 2022-09-11 00:41:20
Subsystem: 82. X11 Emulation Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2026-10-24 15:06:14
Resolution: Out of Date Closed By: chrstphrchvz
    Closed on: 2026-10-24 15:06:14
Description:

Back in February 2022, as an exercise, I tried implementing stipple/tile support for Aqua using CGPattern, and had some success with not too much effort: see https://github.com/chrstphrchvz/tk/commits/aqua-stipple.

I think a few things still need to be addressed before this would be ready for Tk to incorporate, including improving code organization (it is currently placed in TkMacOSXSetColorInContext(), where it might not belong unless the function’s purpose and/or signature are adjusted); handling drawing into monochrome bitmaps; as well as coming up with a convenient way for others to test the FillOpaqueStippled and FillTiled functionality (I have verified these to work, but they aren’t used in core Tk).

User Comments: chrstphrchvz added on 2026-10-24 15:06:14:

Note: although macos-stipple did not implement tile support, I imagine it would not be too difficult to add later if requested.


chrstphrchvz added on 2026-10-24 15:03:32:

Closing; superseded by the macos-stipple branch which has been merged for 9.0+