|
-
Oct 25th, 2002, 06:34 PM
#1
Thread Starter
PowerPoster
I don't like my threads being moved.
Can anyone give me suggestions on how to optimize this, and what I can use it for??
Plop this code on a form with a black background, autoredraw set to true, and a command button called command1.
VB Code:
Private Sub Command1_Click()
For q = 1 To 10
Cls
For i = 0 To 255 Step 2
Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
DoEvents
Next
For i = 0 To 255 Step 2
Line (i, i)-(i + i, i + i), vbBlack, B
DoEvents
Next
Cls
For i = 255 To 0 Step -2
Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
DoEvents
Next
For i = 255 To 1 Step -2
Line (i, i)-(i + i, i + i), vbBlack, B
DoEvents
Next
Next
End Sub
I don't like you martin.
-
Oct 25th, 2002, 07:12 PM
#2
^:^...ANGEL...^:^
Re: I don't like my threads being moved.
Originally posted by MidgetsBro
Can anyone give me suggestions on how to optimize this, and what I can use it for??
Plop this code on a form with a black background, autoredraw set to true, and a command button called command1.
VB Code:
Private Sub Command1_Click()
For q = 1 To 10
Cls
For i = 0 To 255 Step 2
Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
DoEvents
Next
For i = 0 To 255 Step 2
Line (i, i)-(i + i, i + i), vbBlack, B
DoEvents
Next
Cls
For i = 255 To 0 Step -2
Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
DoEvents
Next
For i = 255 To 1 Step -2
Line (i, i)-(i + i, i + i), vbBlack, B
DoEvents
Next
Next
End Sub
I don't like you martin.
what do u mean by optimize this...I can only see something like small flame in the top left corner...
What exactly u r looking for...
-
Oct 25th, 2002, 07:12 PM
#3
Hyperactive Member
is this ok?
VB Code:
Option Explicit
Dim i, q, r As Integer
Private Sub Command1_Click()
r = -2
For q = 1 To 10
Cls
If r = -2 Then r = 2 Else r = -2
For i = 0 To 255 Step r
Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
DoEvents
Next
For i = 0 To 255 Step r
Line (i, i)-(i + i, i + i), vbBlack, B
DoEvents
Next
Next
End Sub
and where can you use it?...I have no idea 
but I might use it to indicate that there's a process going on...just an idea
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Oct 25th, 2002, 08:27 PM
#4
Thread Starter
PowerPoster
Just so you know, I only posted this in question form so that martin wouldn't move it again. ugh. I was bored at work again. Try setting the scalemode to pixels on the form.
-
Oct 25th, 2002, 08:35 PM
#5
Hyperactive Member
thats pretty neat..though I dont know what it would be used for
And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.
-
Oct 25th, 2002, 09:24 PM
#6
Hyperactive Member
LOL
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Oct 25th, 2002, 10:32 PM
#7
^:^...ANGEL...^:^
If u change the colour from to yellow and mix of red and make it like a YELLOW and mix with orange then u can use it as a GUN shot...
When a bullet comes out of a GUN it makes a small fire and this might be useful there...
Cheers...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|