For the hot APP Draw Something, it will record all your drawing trace and send to your friend to convey the guessword for him to guess.
How does this app record the drawing trace? In what kind of data structure?
If develop a similar white board app for real time communication, how to design the data model for more efficient and better interactive of two or more participates? (how to record the drawing trace and send to other participates)
How they do it, I don’t know. How I’d do it, is an array of points, where each point is either a break (which would include a colour value for the next line), or a
(X, Y, T)tuple (coordinates and timing). This is just for freehand lines; if you need something else, obviously, it would need to be extended.