Strange effect with transparencies on android
I have this strange effect when pushstrength is less than 20. pushstrength
is transparency level setting.
It can have MANY overlaps, causing texture to solidify. However this is
not always the case, with sometimes strange effects.
Now, the problem is that at low transparency levels, repeated paints do
not cause spot to become exactly one texture but some strange effects,
worse at lower transparency than higher. Over 20 the problem does not
appear at all.
My guess on why is that it discards delta less than 1 so if change is less
than 1 it does not paint any changes. However I want it to have "round up
to one color". For example if specific pixel red has around 0.2, default
seem to round down to 0, but I want ceiling so its set to 1.
paintshader2.setAlpha(pushstrength);
drawn.drawPath(path, paintshader2);
No comments:
Post a Comment