Hi everyone,
I want to make a little program which allows the user to paint in an area on the screen. After hitting a button I want to translate this image into a binary matrix with 1 for each white and 0 for each black pixel. I'm new to iOS programming and am not sure how to go about it.
Right now I'm drawing in a scene with nodes like this:
marker = ui.Path().oval(0, 0, 4, 4)
marker.fill()
marker.close()
self.pending_mark_a = ShapeNode(marker, position = self.a, color = "#000000", size = (self.dotSize,self.dotSize))
self.pending_mark_a.z_position = 1
self.add_child(self.pending_mark_a)
Can anyone help?
Cheers