Skip to content

Commit b8936cb

Browse files
committed
blendMode() should be a warning, not fatal
1 parent 4d4246b commit b8936cb

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

core/todo.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
0265 (3.3.8 or 3.4)
2+
X change lack of blendMode() to a warning rather than an error in PDF
23

34

45
gohai
@@ -15,6 +16,9 @@ X https://github.com/processing/processing/pull/5202
1516
_ need to make this work behind the scenes instead
1617
_ create icon.png or have an 'icons' folder with multiple sizes
1718

19+
_ Implement blendMode() for PDF
20+
_ https://github.com/processing/processing/issues/5438
21+
1822
_ many shift- keys not working properly in FX2D (added a test sketch)
1923
_ https://github.com/processing/processing/issues/5317
2024

java/libraries/pdf/src/processing/pdf/PGraphicsPDF.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/*
22
Part of the Processing project - http://processing.org
33
4-
Copyright (c) 2005-11 Ben Fry and Casey Reas
4+
Copyright (c) 2005-12 Ben Fry and Casey Reas
5+
Copyright (c) 2012-18 The Processing Foundation
56
67
This library is free software; you can redistribute it and/or
78
modify it under the terms of the GNU Lesser General Public
@@ -551,8 +552,8 @@ public void filter(int kind, float param) {
551552
//
552553

553554
protected void blendModeImpl() {
554-
if (blendMode != BLEND) {
555-
nope("blendMode");
555+
if (blendMode != REPLACE && blendMode != BLEND) {
556+
showMissingWarning("blendMode");
556557
}
557558
}
558559

0 commit comments

Comments
 (0)