If you give a listing which star-values correspond to which star display, then you could assign something like this: