only works one line in 8

Mac Simulator, Version 1.9.3 (133541)

When I call I get what looks like level of the pixels in some rows and no pixels (all off, as if stencil were black) in the other rows. It seems to be one row in 8. For example, using gives horizontal stripes. works, so I'm able to work around this, but it'd be better if the stencil dither worked as in the docs.

For the benefit of anyone else trying to use this before it's fixed, here's the monkeypatch:

local ssp =
    local args = {...}
    if #args <= 2 then
        level = args[1]
        ditherType = args[2] or
        local b =, 32,
        local w =, 32,, level, ditherType)), true)

(It's obviously not good for performance since it's making those images every time but it's good enough for my use.)

1 Like

known bug & related: Masking sprites? - #14 by dave

should be fixed in the next release.

1 Like

Not fixed in Version 1.10.0 (135263) I'm afraid. still gives horizontal stripes.

Oof. Don't know how that one slipped through. I assumed it was a recent regression but I went back and it's always been broken. :confused:

But no more! (Well, once the next update rolls out..) And since I factored together the argument handling for gfx.setStencilPattern() and sprite:setStencilPattern() the latter now has the row1, row2, ... form as well.


I think this is still an issue in 1.11.0 unless i'm misunderstanding something. Is level meant to be between 0 and 1?

Sorry, we've got a huge backlog of merge requests right now. I've learned my lesson, won't say "fixed in next update" any more. :frowning: But this should be in 1.12? :crossed_fingers:


no shade!! just raising that it's still weird. I also think the documentation could be a little clearer about what's acceptable for the level argument!