Animation of a variable star