A-Z

经验创意 · 55 次浏览
H-D-G 创建于 1天7小时前

有些过于复杂只演示画法,有些有不同连笔写法或过于简单的就跳过。

A:

return new GestureDrawer()
    .DrawLine((float)Math.Sqrt(3), 75)
    .DrawLine((float)Math.Sqrt(3), -75)
    .DrawLine(1, 135)
    .DrawLine(0.5f, 0)
    ;

B(不推荐):

return new GestureDrawer()
    .DrawLine(4, 90)
    .DrawLine(1, 0)
    .Arc(1, 3, 1, 90, -180).Forward(1)//画圆后,画笔沿弧切线方向(类似圆周运动的线速度)
    .DrawLine(1, 0)
    .Arc(1, 1, 1, 90, -180).Forward(1)
    ;

C:

return new GestureDrawer()
    .DrawArc(-1, -1, (float)Math.Sqrt(2), 45, 270)
    ;

D:

return new GestureDrawer()
    .DrawLine(3, 90)
    .DrawLine(1, 0)
    .DrawArc(0, -1.5f, 1.5f, 90, -180).Forward(1)
    ;

E,F(不推荐+连笔复杂)

G:

const double angle_75 = (75/180.0)*Math.PI;
return new GestureDrawer()
    .DrawArc((float)-Math.Cos(angle_75), (float)-Math.Sin(angle_75),
        1, 75, 210)
    .DrawLine(0.8f, 90)
    .DrawLine(0.5f, 180)
    ;

H(不推荐+连笔复杂)

I(略)

J:
return new GestureDrawer()
    .DrawLine(5, -90)
    .DrawArc(-1, 0, 1, 0, -180)
    ;

K(不推荐+连笔复杂)

L(略)

M:

double angle = Math.Atan2(2, 1)/Math.PI*180;
return new GestureDrawer()
    .DrawLine(2, 90)
    .DrawLine((float)Math.Sqrt(5), (float)-angle)
    .DrawLine((float)Math.Sqrt(5), (float)angle)
    .DrawLine(2, -90)
    ;

N:

return new GestureDrawer()
    .DrawLine(1, 90)
    .DrawLine((float)Math.Sqrt(2), -45)
    .DrawLine(1, 90)
    ;

O,P(略)

Q(不推荐,建议用O):

const double angle_60 = (60/180.0)*Math.PI;
int clockwise = -1;// 顺时针方向,如果你习惯逆时针,把-1改成1
return new GestureDrawer()
    .DrawArc((float)-Math.Cos(angle_60), (float)Math.Sin(angle_60),
        1, -60, 360*clockwise)
    .Rotate(-90*clockwise)
    .Forward(0.2f)
    ;

S:

const double angle_45 = (45/180.0)*Math.PI;
return new GestureDrawer()
    .DrawArc((float)-Math.Cos(angle_45), (float)-Math.Sin(angle_45),
        1, 45, 225)
    .DrawArc(0, -1, 1, 90, -225)
    ;

T,U,V,W,X,Y,Z(略)

H-D-G 最后更新于 2025/8/7

回复内容
暂无回复
回复主贴