This repository has been archived on 2026-05-13. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
sfdl/README.md
2025-12-04 19:54:13 +08:00

34 lines
741 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# SFDL - Simple Function Draw Language
## 实现语法:
- `scale is (x, y);`
- `origin is (x, y);`
- `rot is x;`
- `for t from a to b step k draw( t, t );`
> 注意现在还不支持color/size语法
## 运行方法
得益于本项目使用go语言且无第三方库基本上任何电脑均可编译运行
首先电脑上得装go语言包然后直接在本项目目录运行
```sh
go run . your_sfdl_file.sfdl
```
运行后结果会保存在`out.png`
也可以先编译本项目再运行:
```sh
go build
./sfdl your_sfdl_file.sfdl
```
当然你也许可以直接下载二进制文件( https://gitea.starryskymeow.cn/xkm/sfdl/releases )
预览:
![预览](https://blog.starryskymeow.top/wp-content/uploads/2025/12/out.png)