【3.A.S.T】网络安全爱好者's Archiver

黑客学习

噯伱╅詠吥變 发表于 2008-6-17 12:58

下雪程序

[code]/*===============================
       snow.vbp---2008年-6月-17日
              VB 6.0通过VB编译
===============================*/
Dim Snow(1000, 2), Amounty As Integer

Private Sub Form_Load()
Form1.Show
DoEvents
Randomize: Amounty = 325
For J = 1 To Amounty
Snow(J, 0) = Int(Rnd * Form1.Width)
Snow(J, 1) = Int(Rnd * Form1.Height)
Snow(J, 2) = 10 + (Rnd * 20)
Next J

Do While Not (DoEvents = 0)
For LS = 1 To 10
For I = 1 To Amounty
OldX = Snow(I, 0): OldY = Snow(I, 1): Snow(I, 1) = Snow(I, 1) + Snow(I, 2)
If Snow(I, 1) > Form1.Height Then Snow(I, 1) = 0: Snow(I, 2) = 5 + (Rnd * 30): Snow(I, 0) = Int(Rnd * Form1.Width): OldX = 0: OldY = 0
Coloury = 8 * (Snow(I, 2) - 10): Coloury = 60 + Coloury: PSet (OldX, OldY), QBColor(0): PSet (Snow(I, 0), Snow(I, 1)), RGB(Coloury, Coloury, Coloury)
Next I
Next LS
Label1.Refresh
Loop
End
End Sub


Private Sub Timer1_Timer()

End Sub


Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
End
End Sub[/code]

Sun 发表于 2008-6-17 13:02

太感谢楼主的奉献精神了

谢谢

最好可以加点注释,虽然有的时候很简单

柔肠寸断 发表于 2008-6-17 13:57

看了,很漂亮的

小淡 发表于 2008-6-17 18:16

支持2楼。  解释解释。嘿嘿。希望体谅下。菜鸟!

DoubleW 发表于 2008-6-28 11:14

看来楼主是搞VB的全是
vb的程序

maomi 发表于 2008-7-2 01:00

恩恩   
很漂亮  
就是 下的有点块了   呵呵

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.