VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



o0)Cool 3D partical movement(0o

by Jason Ryczek (8 Submissions)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

I was just messing around and I did this on accident, but it looks really cool, so I thought I'd post it. This is the second thing that I made when I was messing around, and it's really cool too. It also might work in other VBs, I wasn't sure though.

Rate o0)Cool 3D partical movement(0o

' =-=-=-=-=-=-=-=-=-=-=
' Add a timer, with intervals of 1
' -=-=-=-=-=-=-=-=-=-=-
' This is a really simlpe and cool little program that I made
' on accident trying to make something resembling, well, something
' different. But I thought this looked cool, and I thought that
' someone might want to put it in the back of a game. If anyone does
' please give me a lil credit, thanx.
' ~Jason Ryczek - [email protected]
Dim red(0 To 256) As Integer, green(0 To 256) As Integer, blue(0 To 256) As Integer
Dim RadialGrow As Boolean
Sub ColorFade()
Me.Cls
For i = 0 To 256 Step 1
 red(i) = i
 ' the number 1 is the radial size, change that to make the
 ' radial size around the axis
 green(i) = green(i) + (Rnd * 1) + (Rnd * -1)
 If RadialGrow = True Then
 If green(i) > 256 Or green(i) < 0 Then
 green(i) = 256 / 2
 End If
 End If
 PSet (green(i), red(i) + 10), RGB(0, 256 - i, 256 - i)
Next
End Sub
Private Sub Form_Load()
For i = 0 To 256 Step 1
 green(i) = 256 / 2
Next
' this makes it so that the radius keeps growing
RadialGrow = True
End Sub
Private Sub Timer1_Timer()
ColorFade
Timer1.Interval = 1
End Sub

Download this snippet    Add to My Saved Code

o0)Cool 3D partical movement(0o Comments

No comments have been posted about o0)Cool 3D partical movement(0o. Why not be the first to post a comment about o0)Cool 3D partical movement(0o.

Post your comment

Subject:
Message:
0/1000 characters