# 画太极图。
# By Qibin Ran.
# 2020-04-01

Erase all
14
Purple
# 设定画图框的大小，先横轴，再纵轴
Viewport... 0 6 0 6

# Draw inner box

# 设定线的粗细，数字好像可以很大（测试过1000可以）
Line width... 1

# 设定横轴、纵轴的数值，后面的线、圆、椭圆、弧等的位置按轴的数值确定，因此很关键
Axes... 0 200 0 200

Solid line
# 画圆圈，先设定圆心在横轴（x）、纵轴（y）的位置，最后设定半径
Draw circle... 100 100 5

Blue
Draw circle... 100 100 10
Green
Draw circle... 100 100 20
Yellow
Draw circle... 100 100 30
Lime
Draw circle... 100 100 40
Cyan
Draw circle... 100 100 50
Navy
Draw circle... 100 100 60
Teal
Draw circle... 100 100 70
Olive
Draw circle... 100 100 80
Pink
Draw circle... 100 100 90

Red
Line width... 10
Draw circle... 100 100 100
#Draw function: 0, 0, 1000, "x^0.725"

Line width... 3
Draw line... 100 10.5  100 189.5
Draw line... 0 100 200 100

# 画圆饼，先设颜色，再设定圆心的横（x）、纵轴（y）坐标，最后设定半径
Paint circle... Red 100 100 2

Line width... 1
# 画椭圆，设定确定椭圆的四个点，先横轴（x）、再纵轴（y）
Draw ellipse... 75 125 90 110

Green
# 添加文本，参数依次是横轴位置（x），此位置的左、中、右，纵轴位置（y），此位置的上、中、下
# 位置数据可以超出Axes设定的数值
Text... 100 Centre 210 Half This is an excise picture!
Text... 160 Centre -17 Half 2020-04-02

Line width... 1
# 画圆弧，横轴（x），纵轴（y），半径，起始角度，终止角度（360度即画圆）
Draw arc... 50 100 50 0 360
Draw arc... 150 100 50 0 360

Blue
Line width... 10
# 画圆弧，横轴（x），纵轴（y），半径，起始角度，终止角度（360度即画圆）
Draw arc... 50 100 50 0 180
Draw arc... 150 100 50 180 360

Green
Line width... 1
Draw circle... 100 145 50
Draw circle... 100 55 50

Red
# 画线，横轴起点（x），纵轴起点（y），横轴终点（x），纵轴终点（y）
Draw line... 100 100 28 163
Draw line... 100 100 172 163
Draw line... 100 100 28 38
Draw line... 100 100 172 37

# 标记四个轴的刻度，刻度的数量个数，是否写数字，是否画刻度线（ticks），是否画点线（dotted line）
Marks left... 10 yes yes yes
Marks bottom... 10 yes yes yes

Blue
# 画长方形，横轴起点（x），横轴终点（x），纵轴起点（y），纵轴终点（y）
Draw rectangle... 0 200 0 200

Paint circle... Grey 50 100 8
Paint circle... Grey 150 100 8

# 写入特殊文本，横轴位置，横轴左、中、右，纵轴位置，纵轴上、中、下，字体，字号，旋转角度
Text special: 40, "Centre", 180, "Half", "Times", 18, "35", "天      干"
Text special: 160, "Centre", 180, "Half", "Times", 18, "325", "地        支"
Text special: 40, "Centre", 20, "Half", "Times", 18, "325", "阴        阳"
Text special: 160, "Centre", 20, "Half", "Palatino", 18, "35", "八        卦"

Red
Text special: 210, "Centre", 100, "Half", "Palatino", 18, "270", "平  安  健  康"

OK！太极图已画！
