FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

blendMode() reference · Issue #406 · processing/processing-website · GitHub

Repository navigation

blendMode() reference #406

Open
Open

Description

Issue by shiffman
Tuesday Oct 08, 2013 at 14:31 GMT
Originally opened as processing/processing-web-archive#265


I was going over blendMode with a couple students today and noticed it would be nice if we added some visual aids to the blend mode reference page.

Also, @codeanticode can you clarify what "factor" is referring to?. I would be happy to help document this in the reference.

Activity

  1. processing-bugs commented on Jun 9, 2014

    Author

    Comment by codeanticode
    Tuesday Oct 08, 2013 at 15:15 GMT


    factor refers to the alpha channel of the source color (denoted as B in the reference), at least that's the case in OpenGL.

    A related note regarding blendMode() in P2D and P3D is that not all the blending modes are available with those renderers (because some blending operations like burn or overlay cannot be modeled using the standard blending equations in OpenGL), see the discussion in this issue from the processing repo processing/processing#2075

  2. self-assigned this
    on Jun 10, 2014
  3. mvs202 commented on Nov 30, 2014

    re http://processing.org/reference/javadoc/core/processing/core/PImage.html#blendColor(int,%20int,%20int)

    The documentation could be made much clearer with just a few changes. If you call the parameters c1 and c2, use the same names in the BLEND formula, C = A_factor + B. Can you say instead "returns c1_factor + c2"? And then you simple must explain what "factor" is. It's not a parameter. Is it a global variable? Are you sure that's even the right formula? Shouldn't it be "c1 + factor*(c2 - c1)"? Where factor ranges from 0 to 1.

  4. REAS commented on Oct 2, 2015

    Member

    I am provisionally adding @alignedleft to this. He's great at this. I think the priority is to get the blendMode() reference visual and on par with the blend(). If anything changes to explain what factor is or to modify the equations, they should happen with both reference entries.

  5. assigned and unassigned on Oct 2, 2015
  6. REAS commented on Oct 2, 2015

    Member

    Here's an awesome reference for this from @JakubValtar: processing/processing#2921

  7. assigned and unassigned on Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL