National-day avatar
Add a national-day decoration to an avatar — a corner star, a cluster of stars or a red ring — with adjustable colour and size, exported locally.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Images are processed locally in your browser with Canvas and never uploaded.
Pick an image first (PNG / JPEG / WebP / GIF all work).
No result yet
Result
These are the real numbers from this run — copy them straight out.
Pick an image and the result shows up here.
What this tool does
- National-day avatar: add a star or a red ring in one click instead of aligning assets by hand.
- Team avatars: give everyone the same decoration and colour so the group reads as one.
- Event-limited avatars: the star cluster is lighter than a full ring and works at small sizes.
Example
Input
A 16×16 avatar plus the corner-star style at 256 px output
Output
A 256 × 256 PNG: the avatar is scaled to 236×236 and centred on a transparent canvas, and a five-point star of radius 32 is drawn in the top-left corner
Decorations are drawn on the transparent canvas; cluster mode places one big star plus up to four small ones, all inside the top-right quarter.
Frequently asked questions
Why does changing "Star count" to 5 make no visible difference?
"Star count" only applies to the star-cluster style: it sets the number of small stars, giving one big star plus (count − 1) small ones, so a count of 1 leaves just the big star. The other two styles (corner star and full ring) ignore the slider, although the "Stars" line in the result panel still shows the slider value.
Where are the corner star and the star cluster drawn?
The corner star sits at 20% × 20% of the canvas with a radius of one eighth of the output size (minimum 6 px); the big star of the cluster sits at 72% × 22% with a radius of one fourteenth of the output size (minimum 5 px), and the small stars are laid out around it, all inside the top-right quarter. These decorations are opaque and are painted straight onto the avatar pixels; only the padding around the avatar stays transparent.
Can I change the thickness of the full ring, and how much padding is there?
The full ring has no thickness slider — its width is fixed at one thirty-second of the output size (minimum 3 px) and follows the canvas circumcircle. The padding around the avatar is calculated too, as one twenty-fourth of the output size (minimum 4 px), so a larger output size makes the ring, the stars and the padding proportionally thicker and bigger. The decoration colour is free to change and defaults to flag red #de2910.
Keywords:national day avatarflag avatarstar avatar