ndor is an app with which you can draw by codes, for kids and coders~
It contains two drawing modules, both driven by code in XGo:
- ndor — free drawing with a canvas and a shape/path API (
circle,rectangle,bezier,fill,stroke, colors, text, transforms...). - turtle — turtle graphics on a grid, where a turtle moves with
step,left/right,pen,colorandwidth, and the drawing is animated stroke by stroke.
A native GUI version built with mygo, with one window per module. Switch between ndor and turtle from the Window menu.
The CLI generates images for the ndor module.
Install with Go:
go install github.com/zrcoder/ndor/cmd/ndor@latest
Run:
ndor {source file}
The argument is the code source file(xxx.xgo or xxx.md), the cli will generate a image as xxx.png or a html as xxx.html.
ndor is implemented with Go.
If you want to run ndor on your local machine:
-
Install
git,Goandtask -
Clone the repo
git clone https://github.com/zrcoder/ndor -
Run
-
gui app:
task gui -
cli app
task cli -- internal/examples/ndor/rainbow.xgo task cli -- cmd/ndor/examples/hello.md
-