I would just create a colored version of that diagrams and an "empty" version then reveal the colored verso by using an image mask. The source of the image mask would be a paint stroke along the tube, animated with the Write On behavior.
Freelance Producer/Editor/Motion Graphics Artist
Apple-certified Master Trainer
Author, Motion 4 from Peachpit Press http://www.applemotion.net