~rabbits/public-inbox

oekaki: Make erase set pixel to 0 when blend is off v1 PROPOSED

Jules Maselbas: 1
 Make erase set pixel to 0 when blend is off

 1 files changed, 2 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~rabbits/public-inbox/patches/55115/mbox | git am -3
Learn more about email & git

[PATCH oekaki] Make erase set pixel to 0 when blend is off Export this patch

---
 src/oekaki.tal | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/oekaki.tal b/src/oekaki.tal
index 468e499..3d3721e 100644
--- a/src/oekaki.tal
+++ b/src/oekaki.tal
@@ -464,7 +464,8 @@
	DUP2 .canvas/height LDZ2 LTH2 ?{ POP2 POP2 JMP2r }
	OVR2 .canvas/width LDZ2 LTH2 ?{ POP2 POP2 JMP2r }
	patt-pixel ?{ POP2 POP2 JMP2r }
	.brush/color LDZ !<blend-pixel>/force
	[ LIT2 00 -brush/color ] LDZ .brush/erase LDZ ?{ SWP }
	POP !<blend-pixel>/force

@dec-pixel ( x* y* -- )
	DUP2 .canvas/height LDZ2 LTH2 ?{ POP2 POP2 JMP2r }
-- 
2.45.2