- 精华
- 活跃值
-
- 积分
- 161
- 违规
-
- 印币
-
- 鲜花值
-
- 在线时间
- 小时
累计签到:47 天 连续签到:0 天
|
Sub 羽翼()
长 = 300
宽 = 240
高 = 100
前高 = 70
Dim s As New ShapeRange: Dim s1 As New ShapeRange: Dim s2 As New ShapeRange: Dim s3 As New ShapeRange
Dim s4 As Shape: Dim crv As Curve
Dim s9 As Shape: Dim s8 As Shape: Dim s5 As Shape: Dim s6 As ShapeRange: Dim s7 As ShapeRange
'左右羽翼开始
s3.Add ActiveLayer.CreateRectangle(-5, (宽 - (40 + 0.45 * 宽)) / 2 + 40, 0, (宽 - (40 + 0.45 * 宽)) / 2)
s3.Add ActiveLayer.CreateRectangle(-5, (宽 - (40 + 0.45 * 宽)) / 2 + 40 + 0.45 * 宽, 0, (宽 - (40 + 0.45 * 宽)) / 2 + 0.45 * 宽)
Set s4 = ActiveLayer.CreateCurveSegment2(1, 2, 3, 4, 5, 6, 7, 8)
Set crv = ActiveDocument.CreateCurve
With crv.CreateSubPath(前高, 0)
.AppendCurveSegment 0, 0
.AppendCurveSegment 0, 宽
.AppendCurveSegment 高, 宽
End With
s4.Curve.CopyAssign crv
s4.Curve.Closed = True
x1 = 高
y1 = 宽
x2 = 前高
y2 = 0
a = (x1 - x2) / (y2 - y1)
If a < 0 Then a = -1 * a
aa = Atn(a) * 180 / 3.14 '45
x = 5 * Cos(Atn(a))
y = 5 * Sin(Atn(a))
z = 0.7 * 宽 * Tan(Atn(a))
Set s5 = ActiveLayer.CreateCurveSegment2(1, 2, 3, 4, 5, 6, 7, 8)
Set crv = ActiveDocument.CreateCurve
With crv.CreateSubPath(前高 + x, -y)
.AppendCurveSegment 前高, 0
.AppendCurveSegment 高, 宽
.AppendCurveSegment 高 + x, 宽 - y
End With
s5.Curve.CopyAssign crv
s5.Curve.Closed = True
's5.AddToSelection
s4.CreateSelection
s3.AddToSelection
Set s6 = ActiveSelectionRange.Duplicate
ActiveSelectionRange.Flip CDRFlipHorizontal
ActiveSelectionRange.Move ActiveSelectionRange.SizeWidth + x, -y
ActiveSelectionRange.RotateEx -2 * aa, 高 + x, 宽 - y
s3.CreateSelection
s4.AddToSelection
s5.AddToSelection
s6.AddToSelection
Set s7 = ActiveSelectionRange.Duplicate
s7.Flip cdrFlipHorizontal
s7.Move -s7.SizeWidth - 长 + 10, 0
'左右羽翼结束
End Sub
|
1
赠人玫瑰,手有余香!如单纯感谢,请送花!凡是以文字形式感谢,即被视为水帖,会扣币处理!
鲜花榜单
-
+1
对你表示感谢!
|