Hello everyone.
I have some code that when the player clicks begins to erase a GUI texture based on a brush. I basically use an image with an alpha channel as a brush, load that up in a 2D array and compare the alpha values of the brush with the underlying texture to determine weather or not to change the underlying pixels.
What I’m trying to figure out now is how to create actual brush strokes, because if you try to brush across an area to fast you end up with staggered circular holes instead of a completely solid line.
I am not mathematically inclined, and I suspect there is a mathematical solution to this. I’m wondering if anyone here could send me in the right direction.
Glad that could help :)
– Stamblew