Meaning: This sentence creates a beautiful image of the night sky, where the stars shine like diamonds scattered across a dark blue cloth.
Choice of Words: The verb "glittered" is used to describe the sparkling light of the stars, while "diamonds scattered" suggests that the stars are like precious gems scattered across the sky.