2020
10-20
10-20
c# 实现雪花分形的示例
C#都没人用了吗,网上想找个现成的雪花分形代码,都没找见,有C++,有python,有java的,就没有C#的,自己试试写一个吧。publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}privatevoidForm1_Paint(objectsender,PaintEventArgse){DrawKochSnow(e.Graphics);}privatevoidZheXian(Pointp1,Pointp2,Graphicsg)//4条基本线段组成的折线{Pointp3=newPoint(p1.X+...
继续阅读 >