Enter the star's mass in solar masses, and then watch the life cycle of your star.
The sphere code is from https://scratch.mit.edu/projects/46901296/ All the rest is by me.