Minor issues with a new plugin

Thank you David for your answer.

You’re right, nothing could work in this situation. I’ve checked and I’ve discovered that, most opportunely, I used a method that translated automatically to a 0…255 range.
So the problem stands somewhere else.