Skip to content
shiyongbin edited this page Mar 28, 2018 · 3 revisions

Welcome to the bezier wiki!

Bézier curve(贝塞尔曲线) in svg

go get github.com/toukii/bezier
cd $GOPATH/src/github.com/toukii/bezier/bezier_in_svg
go test -v

NewPoint(110, 105),
NewPoint(220, 240),
NewPoint(130, 250),
NewPoint(180, 350),
NewPoint(280, 450),
NewPoint(480, 150),
NewPoint(111, 211),
NewPoint(222, 122),
NewPoint(333, 433),
NewPoint(444, 344),
NewPoint(555, 655),
NewPoint(666, 566),
NewPoint(777, 877),
NewPoint(888, 788),
NewPoint(999, 999),

svg path:

M110 105 C220 236, 220 244, 175 245M175 245 C131 245, 129 255, 155 300M155 300 C175 344, 185 356, 230 400M230 400 C258 465, 302 435, 380 300M380 300 C483 155, 477 145, 295 180M295 180 C116 211, 106 211, 166 166M166 166 C204 104, 240 140, 277 277M277 277 C315 415, 351 451, 388 388M388 388 C426 326, 462 362, 499 499M499 499 C537 637, 573 673, 610 610M610 610 C648 548, 684 584, 721 721M721 721 C759 859, 795 895, 832 832M832 832 C869 778, 907 798, 999 999

bezier.svg

Clone this wiki locally