diff options
Diffstat (limited to 'js/blit.js')
| -rw-r--r-- | js/blit.js | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -78,6 +78,17 @@ var blit = (function(){ } }) } + blit.inverted_cross = function(A, lex){ + // 1x1 brush should still draw something + if (A.w == 1 && A.h == 1) { + return + } + A.forEach(function(lex,x,y) { + if (!((x+y)%2)) { + lex.clear() + } + }) + } blit.square = function(A, lex){ // i.e. no transparency } |
