feat: add README.md
This commit is contained in:
28
README.md
Normal file
28
README.md
Normal 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)
|
||||
Reference in New Issue
Block a user