面向海报、包装、文创设计的 MoonBit 程序化纹样生成库。支持矩形、六角形、三角形、极坐标网格系统;内置点对称群(Cn, Dn)与墙纸群(p1, p2, pm, pmm, p4, p4m, p6, p6m)变换平铺算法;提供噪声采样适配与坐标扭曲接口;支持参数化导出标准的 SVG 矢量路径与 JSON 结构数据,零外部依赖,编译无 Warning,测试通过率 100%。
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
MoonBit Generative Pattern Library (
generative_patterns)A procedural/generative pattern library written in MoonBit for designing posters, packaging, and cultural products.
Features
Architecture
The project consists of:
lib: Core modules for geometry, symmetry, grid, path, noise, and SVG generation.cmd/main: A showcase command-line tool executing the pattern generator and saving outputs.Usage Example
The following is a verified test case demonstrating basic affine matrix transformations and path construction:
Running & Testing
To compile, build, and test the project:
License
This project is licensed under the Apache License 2.0. See the
LICENSEfile for details.