Title: The explanation of the `scale` example is misleading. · Issue #19 · processing/processing-examples · GitHub
Open Graph Title: The explanation of the `scale` example is misleading. · Issue #19 · processing/processing-examples
X Title: The explanation of the `scale` example is misleading. · Issue #19 · processing/processing-examples
Description: Issue description The manual has a series of examples of transformations. One of them is the scale example. It contains the following comment: Paramenters for the scale() function are values specified as decimal percentages. For example,...
Open Graph Description: Issue description The manual has a series of examples of transformations. One of them is the scale example. It contains the following comment: Paramenters for the scale() function are values specif...
X Description: Issue description The manual has a series of examples of transformations. One of them is the scale example. It contains the following comment: Paramenters for the scale() function are values specif...
Opengraph URL: https://github.com/processing/processing-examples/issues/19
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The explanation of the `scale` example is misleading.","articleBody":"### Issue description\r\n\r\nThe manual has a series of examples of transformations.\r\nOne of them is the scale example. It contains the following comment:\r\n\r\n\u003e Paramenters for the scale() function are values specified \r\n as decimal percentages. For example, the method call scale(2.0) \r\n will increase the dimension of the shape by 200 percent. \r\n Objects always scale from the origin. \r\n\r\nThere are a few confusing issues here:\r\n\r\n * If the input of scale() were percentages, the call to double the size would be `scale(200)`.\r\n * The increase of dimension for the call `scale(2.0)` is not 200% but only 100%.\r\n The problems is that 2.0 is the growth factor and the growth rate is \r\n growth_rate = growth_factor - 1\r\n * The call to `scale` doesn't scale the size on an object - it changes how coordinates are interpreted.\r\n\r\nThe actual example is a fine illustration of the use of `scale()` so I am only suggesting changing the explanation.\r\n\r\n### URL(s) of affected page(s)\r\n\r\nhttps://github.com/processing/processing-docs/blob/master/content/examples/Basics/Transform/Scale/Scale.pde\r\n\r\n\r\n### Proposed fix\r\n\r\n","author":{"url":"https://github.com/soegaard","@type":"Person","name":"soegaard"},"datePublished":"2021-07-01T09:17:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/19/processing-examples/issues/19"}
| 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:2dc817ed-be11-f6ca-997d-9013dd916042 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93CE:25EF8D:31525E3:42BFBED:69708DA4 |
| html-safe-nonce | aba5894f605df78147cb7ca364bd229e8a0b83630313c994cca98e853813b339 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0NFOjI1RUY4RDozMTUyNUUzOjQyQkZCRUQ6Njk3MDhEQTQiLCJ2aXNpdG9yX2lkIjoiNjAzNzEwMjM5MDYxNzg2OTczMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8893b8eb54349bb54823ae04d81ae882301d33f78a3690b4715f9036d66c425e |
| hovercard-subject-tag | issue:1522862778 |
| 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/processing/processing-examples/19/issue_layout |
| twitter:image | https://opengraph.githubassets.com/98f9da75d517dd56e00617c3cfd0b9b9fcb967c2be793405fad066e3ab77cd58/processing/processing-examples/issues/19 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/98f9da75d517dd56e00617c3cfd0b9b9fcb967c2be793405fad066e3ab77cd58/processing/processing-examples/issues/19 |
| og:image:alt | Issue description The manual has a series of examples of transformations. One of them is the scale example. It contains the following comment: Paramenters for the scale() function are values specif... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | soegaard |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/processing/processing-examples git https://github.com/processing/processing-examples.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 394096315 |
| octolytics-dimension-repository_nwo | processing/processing-examples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 394096315 |
| octolytics-dimension-repository_network_root_nwo | processing/processing-examples |
| 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 | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width