❄ 多片雪花分形(任意边数)Draw a Multiflake Fractal
绘制任意边数的多边形雪花(n-flake):在各顶点方向摆更小的多边形,5 边及以上再在中心放一块;3 边没有中心块,就是谢尔宾斯基三角形,4 边的四块正好拼满。边数 3–12,可调迭代与颜色,导出 PNG。Draw an n-flake: smaller polygons toward each vertex, plus a centre piece from 5 sides up; 3 sides has no centre piece and gives the Sierpiński triangle, and with 4 sides the four pieces fill the square exactly. Sides 3–12; set iterations and colours; export PNG.
使用说明与常见问题How-to & FAQ
「多片雪花分形(任意边数)」是什么?What is the Draw a Multiflake Fractal tool?
绘制任意边数的多边形雪花(n-flake):在各顶点方向摆更小的多边形,5 边及以上再在中心放一块;3 边没有中心块,就是谢尔宾斯基三角形,4 边的四块正好拼满。边数 3–12,可调迭代与颜色,导出 PNG。Draw an n-flake: smaller polygons toward each vertex, plus a centre piece from 5 sides up; 3 sides has no centre piece and gives the Sierpiński triangle, and with 4 sides the four pieces fill the square exactly. Sides 3–12; set iterations and colours; export PNG.
如何使用「多片雪花分形(任意边数)」?How do I use the Draw a Multiflake Fractal tool?
在「多片雪花分形(任意边数)」中,按需设置「宽度」、「高度」、「边距」、「线宽」、「边数」等选项,然后点击「绘制」、「下载 PNG」按钮即可。Set the canvas "Width" and "Height", the "Padding" around the drawing and the "Line width", choose the number of polygon "Sides" and "Iterations", pick the "Background", "Line" and "Fill" colours, then click "Draw". "Download PNG" saves the picture at the canvas size.
边数怎么选?How do I choose the number of sides?
缩放比按 n-flake 公式 1/(2(1+Σcos(2πk/n)))(k 取 1 到 ⌊n/4⌋)计算:3 边为 1/2,就是谢尔宾斯基三角形;5 边约 0.382(pentaflake);6 边为 1/3(hexaflake)。5 边及以上会在中心多放一块(奇数边时中心块倒置,使它的边贴着角块而不重叠);3 边只有三个角块,没有中心块。4 边时四个半尺寸方块正好拼满原图形,不会出现空洞,这是 n-flake 的已知特例。边数越多图案越接近圆。The scale follows the n-flake formula 1/(2(1+Σcos(2πk/n))) for k = 1…⌊n/4⌋: 3 sides give 1/2, the Sierpiński triangle; 5 sides about 0.382 (pentaflake); 6 sides 1/3 (hexaflake). With 5 or more sides a centre piece is added (upside down for an odd number of sides, so its edges sit against the corner pieces without overlapping); 3 sides has only the three corner pieces and no centre. With 4 sides the four half-size pieces exactly fill the original, so no holes appear — a known special case of the n-flake. More sides look rounder.
和单独的五片/六片工具重复吗?Is this the same as penta/hexaflake?
算法同一家族;专用工具默认边数固定并写了对应说明,本工具可一次改边数对比。Same family; the dedicated tools fix the side count and document that shape — here you can change sides to compare.
有哪些选项可以调整?What options can I adjust?
「多片雪花分形(任意边数)」的设置:「宽度」默认 512,范围 64–2048;「高度」默认 512,范围 64–2048;「边距」默认 20,范围 0–256;「线宽」默认 2,范围 0.5–40;「边数」默认 6,范围 3–12;「迭代次数」默认 3,范围 1–5;「背景」默认 #ffffff;「线条」默认 #1e3a8a;「填充」默认 #93c5fd。改动任一选项后结果会按新设置重新生成。Settings in the Draw a Multiflake Fractal — "Width" default 512, range 64–2048; "Height" default 512, range 64–2048; "Padding" default 20, range 0–256; "Line width" default 2, range 0.5–40; "Sides" default 6, range 3–12; "Iterations" default 3, range 1–5; "Background" default #ffffff; "Line" default #1e3a8a; "Fill" default #93c5fd. Changing any option regenerates the result with the new setting.
「多片雪花分形(任意边数)」免费吗?需要注册吗?Is the Draw a Multiflake Fractal free? Do I need an account?
「多片雪花分形(任意边数)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Draw a Multiflake Fractal is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.