generate a star! Some things to note: almost all values shown are in proportion to the sun (solar radii solar masses solar lifetimes ect.), the habitable zone values are in AU. If you can think of a way to improve it, feel free to remix it with the new feature. The size of the star image at the end of generation increases exponentially in relation to mass, until it suddenly stops ~20 Solar masses, but Since I spent way to long making sure that both the smallest and biggest sizes were vizible and the size of the image increased with the radius of the star I can't be bothered to fix it.
I took the nth root script from leszpio's nth root project (https://scratch.mit.edu/projects/2725943/). I took the equations and values from Artifexian's video How to Build 1000 Stars (m.youtube.com/watch?v=hG1of0MroM8).