Generates a dynamic star rating image (SVG) using Python, which is deployed freely via Vercel
This service is deployed on Vercel and accessible via the domain starrating-beta.vercel.app.
Inspired by the dynamic progress bar: From
To display a star rating of 2.7, use the following URL:
https://starrating-beta.vercel.app/2.7/
This will generate an SVG image showing a star rating of 2.7 out of 5.
To display a star rating of 2.7 with a star size of 48 pixels, use the following URL:
https://starrating-beta.vercel.app/2.7/?size=48
Parameter | Description | Default Value |
---|---|---|
rating |
The rating value to display (between 0 and 5) | 0 |
size |
The size of each star in pixels | 24 |
To display a moon rating of 3.5, use the following URL:
https://starrating-beta.vercel.app/moon/3.5/
This will generate a text representation of the moon rating of 3.5 out of 5.
Rating | Moon Rating Image | Markdown |
---|---|---|
1.0 | 🌑🌑🌑🌑🌑 | ![Moon Rating](https://starrating-beta.vercel.app/moon/1.0/) |
2.6 | 🌑🌑🌑🌑🌑 | ![Moon Rating](https://starrating-beta.vercel.app/moon/2.6/) |
3.3 | 🌑🌑🌑🌑🌑 | ![Moon Rating](https://starrating-beta.vercel.app/moon/3.3/) |
4.0 | 🌑🌑🌑🌑🌑 | ![Moon Rating](https://starrating-beta.vercel.app/moon/4.0/) |
5.0 | 🌑🌑🌑🌑🌑 | ![Moon Rating](https://starrating-beta.vercel.app/moon/5.0/) |