summaryrefslogtreecommitdiff
path: root/js/draw.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/draw.js')
-rw-r--r--js/draw.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/draw.js b/js/draw.js
index 173a84e..09e660b 100644
--- a/js/draw.js
+++ b/js/draw.js
@@ -20,7 +20,7 @@ function stamp (canvas, brush, x, y, erasing) {
brush.forEach(function(lex, s, t){
s = round( s + x-hh )
t = round( t + y-hh )
- if (s >= 0 && s < canvas.w && t >= 0 && t < canvas.h) {
+ if (lex.opacity > 0 && s >= 0 && s < canvas.w && t >= 0 && t < canvas.h) {
if (erasing) {
canvas.aa[t][s].erase(lex)
}