Title: Clipping fails using image mask and units != px · Issue #83 · plotdevice/plotdevice · GitHub
Open Graph Title: Clipping fails using image mask and units != px · Issue #83 · plotdevice/plotdevice
X Title: Clipping fails using image mask and units != px · Issue #83 · plotdevice/plotdevice
Description: Clipping gives strange results when the clip mask is an image and the units are not pixels. In the code snippet, if "px" is changed to, say, "mm" the clipping gives a very strange result. background(1) fill(0.5, 0.5, 0.5, 1.0) with clip(...
Open Graph Description: Clipping gives strange results when the clip mask is an image and the units are not pixels. In the code snippet, if "px" is changed to, say, "mm" the clipping gives a very strange result. backgroun...
X Description: Clipping gives strange results when the clip mask is an image and the units are not pixels. In the code snippet, if "px" is changed to, say, "mm" the clipping gives a very stran...
Opengraph URL: https://github.com/plotdevice/plotdevice/issues/83
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clipping fails using image mask and units != px","articleBody":"Clipping gives strange results when the clip mask is an image and the units are not pixels. In the code snippet, if \"px\" is changed to, say, \"mm\" the clipping gives a very strange result.\n\n```size(200, 200, px)\nbackground(1)\n\nfill(0.5, 0.5, 0.5, 1.0)\n\nwith clip(image('circle.pdf', 20, 20)):\n rect(0,0,200, 200) # Rectangle covering entire canvas```\n\n\u003cimg width=\"5873\" height=\"3211\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/690be3bb-befe-4256-9378-3030f50a3fc9\" /\u003e\n\n[circle.pdf](https://github.com/user-attachments/files/21583838/circle.pdf)","author":{"url":"https://github.com/amtravco","@type":"Person","name":"amtravco"},"datePublished":"2025-08-04T19:38:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/83/plotdevice/issues/83"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:56cb5cd0-0073-3b80-b822-01c7bfc45a0e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCFA:2CBE2A:81FB50:B61E45:696A20BD |
| html-safe-nonce | c5abf231efeb06dfe9e73aaf2e0662ef90824f3f87557fde9038e80e928f2060 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0ZBOjJDQkUyQTo4MUZCNTA6QjYxRTQ1OjY5NkEyMEJEIiwidmlzaXRvcl9pZCI6IjU0ODkyNjc4MjcyNzAwOTkxMzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 631a7e50ee1c8e0ad876b70d382630d0108eb76b112acf8f4bd9ecb9175eb23a |
| hovercard-subject-tag | issue:3290569641 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotdevice/plotdevice/83/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b16f638b4637972aa8130e570a7cbfbf6ed18faf48b1f0229fdce09a4c509d6b/plotdevice/plotdevice/issues/83 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b16f638b4637972aa8130e570a7cbfbf6ed18faf48b1f0229fdce09a4c509d6b/plotdevice/plotdevice/issues/83 |
| og:image:alt | Clipping gives strange results when the clip mask is an image and the units are not pixels. In the code snippet, if "px" is changed to, say, "mm" the clipping gives a very strange result. backgroun... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amtravco |
| hostname | github.com |
| expected-hostname | github.com |
| None | 014f3d193f36b7d393f88ca22d06fbacd370800b40a547c1ea67291e02dc8ea3 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotdevice/plotdevice git https://github.com/plotdevice/plotdevice.git |
| octolytics-dimension-user_id | 6814325 |
| octolytics-dimension-user_login | plotdevice |
| octolytics-dimension-repository_id | 14907048 |
| octolytics-dimension-repository_nwo | plotdevice/plotdevice |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14907048 |
| octolytics-dimension-repository_network_root_nwo | plotdevice/plotdevice |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d515f6f09fa57a93bf90355cb894eb84ca4f458f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width