📄 paintcircle.frm
字号:
VERSION 5.00
Begin VB.Form PaintCircle
Caption = "Form1"
ClientHeight = 4635
ClientLeft = 60
ClientTop = 345
ClientWidth = 6075
LinkTopic = "Form1"
ScaleHeight = 4635
ScaleWidth = 6075
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text1
Height = 270
Left = 120
TabIndex = 0
Top = 240
Width = 4215
End
Begin VB.Timer Timer1
Interval = 300
Left = 1320
Top = 1920
End
End
Attribute VB_Name = "PaintCircle"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim num, num1, b
Const ZD = 80
Private Sub Form_Load()
num1 = -6.283
End Sub
Private Sub Timer1_Timer()
Cls
Const PI = 3.14159265
FillColor = QBColor(1)
FillStyle = 0
x = ScaleWidth / 2
y = ScaleHeight / 2
radius = ScaleWidth / 4
Circle (x, y), radius, , num, num1
Text1.Text = Str$(num) + " , " + Str$(num1)
If Not b Then num = num - ((2 * PI) / ZD)
If b Then num1 = num1 - ((2 * PI) / ZD)
If Abs(num) > 6.283 Or Abs(num1) > 6.283 Then
If Not b Then
num = -6.283
num1 = 0
num1 = num1 - ((2 * PI) / ZD)
b = True
Else
num = 0
num = num - ((2 * PI) / ZD)
num1 = -6.283
b = False
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -