When researching how to implement a smudge tool, I found that just about everyone has a different implementation. If you’re familiar with bitmap editors, that almost sounds like the stamp brush tool, which it is, so as a bonus we’ll cover how to implement a stamp brush tool. The brush picks up paint from the canvas then deposits it elsewhere on the canvas. The idea behind a smudge tool is that as you drag a brush through paint, both the canvas and brush swap paint. How much of a smudge you get is determined by how much pressure is applied. Then drag the smudge tool from the left to the right (i.e. For example if you start with simple image below: Your basic smudge tools smears the paint as if you dragged a clean brush across it. So, as a bonus, I went ahead and threw in a stamp tool implementation too. I was pleasantly surprised that it was quite simple to implement. I originally thought the smudge tool would be rather complex. Just about everyone has played with finger paints before, and knows what happens when you drag your finger through paint. I like the smudge tool because, like the brush, it has a real world analog, which means it’s a bit easier for new users to figure out how it works.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |