Skip to content

blendMode() in setup breaks background() in setup and displays raw framebuffer #520

Open
@JackWitherell

Description

@JackWitherell

I feel a bit rude reporting these bugs I'm finding without actually contributing to the processing-android project. I'd love to take a hand in contributing towards fixes but I'm not sure where to start learning the internals of processing's implementation.

Regardless, documenting issues is healthier than holding them back.

Version 4.0.4 of the mode.

Running blendMode(ADD) after background(0) within setup() sets the background after the call to blendMode and somehow eliminates the original data stored within the frameBuffer that would make it show the default processing sketch background color.

Behavior in P2D normally: displays black background and then sets blendMode.

Running the following code demonstrates this behavior.

Demo code

void setup(){
  fullScreen(P2D);
  background(0);
  blendMode(ADD);
}

Output:

screenshot_20190219-005049

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions