feat: add README.md

This commit is contained in:
xkm
2025-12-04 18:51:31 +08:00
parent ff4fb3b07d
commit 71f6368bf5

28
README.md Normal file
View File

@@ -0,0 +1,28 @@
# 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 );`
## 运行方法
得益于本项目使用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