📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3675
ClientLeft = 60
ClientTop = 345
ClientWidth = 4635
LinkTopic = "Form1"
ScaleHeight = 3675
ScaleWidth = 4635
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "旋转陀螺"
Height = 495
Left = 3120
TabIndex = 1
Top = 3000
Width = 1215
End
Begin VB.PictureBox Picture1
Height = 2655
Left = 360
ScaleHeight = 2595
ScaleWidth = 3915
TabIndex = 0
Top = 120
Width = 3975
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim Radius
Dim i As Integer
For i = 0 To 3000
r = 255 * Rnd '随机产生颜色的红色分量
g = 255 * Rnd '随机产生颜色的绿色分量
b = 255 * Rnd '随机产生颜色的蓝色分量
xpos = Picture1.ScaleWidth / 2
ypos = Picture1.ScaleHeight / 2
Radius = ((ypos * 0.9) + 1) * Rnd '随机产生圆的半径
Picture1.DrawStyle = 1
Picture1.Circle (xpos, ypos), Radius, RGB(r, g, b)
Next i
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -