Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
acamposuribe committed Nov 14, 2023
1 parent 97d2079 commit 6a1b844
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions p5.brush.js
Original file line number Diff line number Diff line change
@@ -1023,9 +1023,7 @@
const isBlendableType = b.type === "marker" || b.type === "custom" || b.type === "image";
if (b.type === "image") {
T.add(b.image.src);
b.tip = () => {
B.mask.image(T.tips.get(B.p.image.src), -B.p.weight / 2, -B.p.weight / 2, B.p.weight, B.p.weight);
}
b.tip = () => B.mask.image(T.tips.get(B.p.image.src), -B.p.weight / 2, -B.p.weight / 2, B.p.weight, B.p.weight);
}
b.blend = ((isBlendableType && b.blend !== false) || b.blend) ? true : false;
B.list.set(a, { param: b, colors: [], buffers: [] });

0 comments on commit 6a1b844

Please sign in to comment.