Title: Problems with blur/blend methods · Issue #1224 · processing/processing · GitHub
Open Graph Title: Problems with blur/blend methods · Issue #1224 · processing/processing
X Title: Problems with blur/blend methods · Issue #1224 · processing/processing
Description: Original author: andres.c...@gmail.com (August 16, 2012 16:23:17) The following sketch: PImage clean; PGraphics pgr, pgb, pgg, pgp; int lastTime = 0; PFont myFont; String renderer = P2D; void setup() { size(320, 240, renderer); pgr = cre...
Open Graph Description: Original author: andres.c...@gmail.com (August 16, 2012 16:23:17) The following sketch: PImage clean; PGraphics pgr, pgb, pgg, pgp; int lastTime = 0; PFont myFont; String renderer = P2D; void setup...
X Description: Original author: andres.c...@gmail.com (August 16, 2012 16:23:17) The following sketch: PImage clean; PGraphics pgr, pgb, pgg, pgp; int lastTime = 0; PFont myFont; String renderer = P2D; void setup...
Mail addresses
andres.c...@gmail.com
Opengraph URL: https://github.com/processing/processing/issues/1224
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problems with blur/blend methods","articleBody":"_Original author: andres.c...@gmail.com (August 16, 2012 16:23:17)_\n\nThe following sketch:\n\nPImage clean;\nPGraphics pgr, pgb, pgg, pgp;\nint lastTime = 0;\nPFont myFont;\nString renderer = P2D;\n\nvoid setup() {\n size(320, 240, renderer);\n pgr = createGraphics( width, height, renderer); \n pgg = createGraphics( width, height, renderer); \n pgb = createGraphics( width, height, renderer);\n pgp = createGraphics( width, height, renderer);\n noSmooth();\n myFont = createFont(\u0026quot;Arial\u0026quot;, 28);\n textFont(myFont, 28);\n}\n\nvoid draw() {\n background(0);\n fill(255);\n text(\u0026quot;CODE\u0026quot;, 20, 30);\n\n noStroke();\n\n fill(255, 255, 0);\n ellipse( 70, 70, 20, 20);\n\n fill(255, 0, 0);\n rect( 100, 100, 10, 30);\n\n fill(0, 255, 255);\n ellipse( mouseX, mouseY, 20, 20 );\n\n /// Post scene effects follow.\n\n if ( mousePressed ) {\n return;\n }\n\n clean = get(); \n background(0);\n\n pgr.beginDraw();\n pgr.tint(255, 0, 0);\n pgr.image(clean, 0, 0);\n pgr.endDraw();\n\n pgg.beginDraw();\n pgg.tint(0, 255, 0);\n pgg.image(clean, 0, 0);\n pgg.endDraw();\n\n pgb.beginDraw();\n pgb.tint(0, 0, 255);\n pgb.image(clean, 0, 0);\n pgb.endDraw();\n\n if ( millis() \u0026gt; lastTime + 100 ) {\n pgp.beginDraw();\n pgp.background(255);\n pgp.loadPixels();\n for (int x=0; x\u0026lt;pgp.pixels.length; x++) {\n pgp.pixels[x] = color( random(128) );\n }\n pgp.updatePixels();\n pgp.endDraw();\n lastTime = millis();\n }\n\n image( pgr.get(), -int(random(1, 4)), 0);\n blend( pgg.get(), 0, 0, width, height, 0, 0, width, height, ADD);\n blend( pgb.get(), int(random(1, 4)), 0, width, height, 0, 0, width, height, ADD);\n blend( pgp.get(), 0, 0, width, height, 0, 0, width, height, SCREEN);\n\n if ( random(1) \u0026lt; .5 ) { \n filter( BLUR, int( random(2) ) );\n }\n}\n\ngenerates entirely different outputs when using either JAVA2D (assumed to be the correct result) and P2D (see attached images).\n\nThis might be pointing to an issue with the blur and/or the blend methods.\n\n_Original issue: http://code.google.com/p/processing/issues/detail?id=1186_\n","author":{"url":"https://github.com/processing-bugs","@type":"Person","name":"processing-bugs"},"datePublished":"2013-02-10T17:25:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1224/processing/issues/1224"}
| 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:84270975-9c90-32bb-f810-a7c32bef1d1d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADAC:19782E:1FAD0E6:2AAAF91:697081D3 |
| html-safe-nonce | 45159b2e966261ec34535db59e7492da6d8e0b0fcfb2c64b337b34f45797d0e3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREFDOjE5NzgyRToxRkFEMEU2OjJBQUFGOTE6Njk3MDgxRDMiLCJ2aXNpdG9yX2lkIjoiNzA5MjM0Mjc0MTA0NzIxNDU0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a63590c311f36445aa941b3cafe8586754934d08d46da914c280bcff03e3f47a |
| hovercard-subject-tag | issue:10826120 |
| 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/1224/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4eb6f30143a89cd859aa471d1d1339b9af6f239254c1b3ad7246c97a2394758b/processing/processing/issues/1224 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4eb6f30143a89cd859aa471d1d1339b9af6f239254c1b3ad7246c97a2394758b/processing/processing/issues/1224 |
| og:image:alt | Original author: andres.c...@gmail.com (August 16, 2012 16:23:17) The following sketch: PImage clean; PGraphics pgr, pgb, pgg, pgp; int lastTime = 0; PFont myFont; String renderer = P2D; void setup... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | processing-bugs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| 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 | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width