Title: color() function is not thread-safe · Issue #3077 · processing/processing · GitHub
Open Graph Title: color() function is not thread-safe · Issue #3077 · processing/processing
X Title: color() function is not thread-safe · Issue #3077 · processing/processing
Description: The following code: for(int j=0; j < dimention; j++) { color current = ledImage[i].pixels[j]; ledImage[i].pixels[j] = color(red(current), green(current), blue(current)); //multiply color correction here } Was acting as a place holder. Th...
Open Graph Description: The following code: for(int j=0; j < dimention; j++) { color current = ledImage[i].pixels[j]; ledImage[i].pixels[j] = color(red(current), green(current), blue(current)); //multiply color correction...
X Description: The following code: for(int j=0; j < dimention; j++) { color current = ledImage[i].pixels[j]; ledImage[i].pixels[j] = color(red(current), green(current), blue(current)); //multiply color correct...
Opengraph URL: https://github.com/processing/processing/issues/3077
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"color() function is not thread-safe","articleBody":"The following code:\n\n```\n for(int j=0; j \u003c dimention; j++) {\n color current = ledImage[i].pixels[j];\n ledImage[i].pixels[j] = color(red(current), green(current), blue(current)); //multiply color correction here\n }\n```\n\nWas acting as a place holder. The plan was to multiply the Red, Green, Blue by color correction values for each pixel of an LED Wall. This function occasionally returned the wrong color value when threading (each thread handles a different i). I reimplemented it using bit shifting and it worked fine. \n","author":{"url":"https://github.com/mattlathrop","@type":"Person","name":"mattlathrop"},"datePublished":"2015-02-02T00:45:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/3077/processing/issues/3077"}
| 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:6fc47cee-a256-fdda-e420-a438f6f5d65e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5EE:217C4D:3C52A71:50FD7EF:696F1F5B |
| html-safe-nonce | 6515af9eb776f4fedeac37ed4eb873087678721c25956733a255d3343486c4f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUVFOjIxN0M0RDozQzUyQTcxOjUwRkQ3RUY6Njk2RjFGNUIiLCJ2aXNpdG9yX2lkIjoiNjQzODM1NTM0MjI2NDgzNTkzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 535577a18cc5256528346f987f2178b22aba611ada7c79467924b176453a5ae5 |
| hovercard-subject-tag | issue:56185733 |
| 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/3077/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8e004b750a0674ab75a09169240223beb89714c48408e86fa81740b7df2fd843/processing/processing/issues/3077 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8e004b750a0674ab75a09169240223beb89714c48408e86fa81740b7df2fd843/processing/processing/issues/3077 |
| og:image:alt | The following code: for(int j=0; j < dimention; j++) { color current = ledImage[i].pixels[j]; ledImage[i].pixels[j] = color(red(current), green(current), blue(current)); //multiply color correction... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mattlathrop |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/processing/processing git https://github.com/processing/processing.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 7807399 |
| octolytics-dimension-repository_nwo | processing/processing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7807399 |
| octolytics-dimension-repository_network_root_nwo | processing/processing |
| 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 | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width