Flower-bird script generator
Lay 2–12 characters out as decorative flower-bird script in SVG: one cell per character, ornaments scattered by a deterministic draw seeded from the text, a petal ring around Han characters and bold stroked gradient glyphs. Canvas, font size and three colours are adjustable, and the same input always reproduces the same SVG.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Flower-bird script
The report lists canvas size, cell size, font size, ornament count, palette, per-character cell coordinates and the full SVG source; the preview uses that same SVG as a base64 data URI.
Enter some text to see the flower-bird layout and the SVG source
What this tool does
- Turn 2–4 characters into a flower-bird style square: two characters for a name or seal background, four for a poster or cover title
- Pick ink, gradient and background colours, then copy the SVG source into a .svg file or save the preview as a PNG
- Pin the random seed so the same text always produces the exact same ornament layout, which makes a consistent series
Example
Input
花鸟
Output
Flower-bird style: 花鸟 (2 characters, 2 of them Han) Canvas 1200 × 480px · cell 394px · font size 362.48px · density 1 Ornaments: 12 (including the petal ring around each Han character) Palette: ink #D81E06 · gradient to #F97316 · background #FFFBF2 Note: this tool produces a geometric decorative layout in the flower-bird style (petal ring + scattered ornaments + bold stroked kai glyphs), not hand-painted bird-and-insect script. The same text and seed always give exactly the same drawing, which suits avatars, seal backgrounds and poster titles. Cell coordinates: 花 → cell top-left (206, 43), cell 394px, 6 ornaments 鸟 → cell top-left (600, 43), cell 394px, 6 ornaments
Real report head with the default settings (1200 × 480, density 1, seed derived from the text): 394px cells, 362.48px glyphs, 12 ornaments. The full report continues with the SVG source; only the head is shown here.
Frequently asked questions
Is this real flower-bird script?
No. Real flower-bird script (鸟虫书) is hand-painted lettering whose strokes are birds, flowers and insects. This tool produces a geometric decorative layout in that style: one cell per character, a petal ring with deterministically scattered ornaments, and a bold stroked gradient glyph. The report says so explicitly instead of claiming to be hand-drawn.
Are the glyphs outlines? Will they change on another device?
They are <text> elements, not paths, with font-family="STKaiti, KaiTi, system-ui, sans-serif". The shapes therefore depend on which fonts the viewing device has: a Chinese kai script when available, otherwise a system sans-serif. The ornaments (petal ring and dots) are <ellipse>/<circle> and look identical everywhere. Export to a bitmap or convert to paths if the exact letterforms matter.
What are the limits and the character coverage?
At most 12 characters per run (spaces and punctuation included); longer input reports "at most 12 characters" and empty input is rejected. Han characters are detected in U+4E00–U+9FFF and U+3400–U+4DBF, so characters from Extension B and beyond (for example 𠀋) are treated as non-Han: 3 ornaments and no petal ring. Canvas width is 240–4000, height 120–4000, font size 24–400.
Are the ornament positions random? Can they be reproduced?
They are pseudo-random but deterministic: positions come from a mulberry32 stream seeded by hash(seed + text + density). The seed defaults to a hash of the text and can be set to any integer from 0 to 999999. The same text, density and seed produce byte-identical output; changing density or seed only moves the ornaments, never the cell coordinates.
Which colour formats are accepted?
Ink, gradient end and background all accept #RGB or #RRGGBB in any case and are normalised to 6-digit upper case (abc → #AABBCC). Anything else, such as #12 or "red", reports that colours must be #RGB or #RRGGBB. Dots use the gradient end colour, petals use the ink colour, and the glyph uses the ink → gradient-end linear gradient.
Keywords:flower bird scriptdecorative svg