David Piper
1 min readJun 3, 2020

--

Hey Chandra,

thanks for your question. I just testet and it seems to work fine, additional points and lines are added as expected when moving the finger. But because you are using clear color, you won't be able to see the lines. What's your use case, why do you want to draw colorless lines?

If you want to erase existing lines, you can't use clear color. Instead there are multiple options to do so. E.g. you could check which lines are crossed and remove these lines from the array. A simpler option would be to just draw with the same color as the background color of your `DrawView`.

--

--

David Piper
David Piper

Written by David Piper

Working as an iOS and Android dev.

No responses yet