Hi there,
Thanks for reaching out. We can definitely can create such color changing effect in XD using the combination of multiple artboards and time trigger however, I am afraid, we don't have the option to trigger this change of color by tilting the phone. Having said that, this does sound like a great feature request so you can always share your feedback here .
Regards
Rishabh