Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add clarifying comments to BlendModeTest
  • Loading branch information
avinxshKD committed Feb 23, 2026
commit 9f15f9f5754fdd099d1fb8903995a93b8f6f218f
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class BlendModeTest extends VisualTest {

// Draws base rects with BLEND, then overlays a green rect using the given mode
private ProcessingSketch createBlendTest(int mode) {
return new ProcessingSketch() {
@Override
Expand All @@ -21,6 +22,7 @@ public void setup(PApplet p) {

@Override
public void draw(PApplet p) {
// Base layer — always drawn with normal BLEND
p.blendMode(PApplet.BLEND);
p.fill(200, 60, 60);
p.rect(5, 5, 30, 30);
Expand Down Expand Up @@ -141,6 +143,7 @@ public void setup(PApplet p) {

@Override
public void draw(PApplet p) {
// Each strip should only reflect its own blend mode
p.blendMode(PApplet.ADD);
p.fill(200, 60, 60, 160);
p.rect(5, 5, 20, 40);
Expand Down