VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Draw squares of different colour,size and position on the screen every 1 millisecond.

by Iwan Davies (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Sun 15th September 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Draw squares of different colour,size and position on the screen every 1 millisecond.

Rate Draw squares of different colour,size and position on the screen every 1 millisecond.



Randomize
x1 = Int((Form1.Height - 1 + 1) * Rnd + 1)
x2 = Int((Form1.Height - 1 + 1) * Rnd + 1)
y1 = Int((Form1.Height - 1 + 1) * Rnd + 1)
y2 = Int((Form1.Height - 1 + 1) * Rnd + 1)
Line (x1, x2)-(y1, y2), RGB(Int((255 - 1 + 1) * Rnd + 1), Int((255 - 1 + 1) * Rnd + 1), Int((255 - 1 + 1) * Rnd + 1)), B


Download this snippet    Add to My Saved Code

Draw squares of different colour,size and position on the screen every 1 millisecond. Comments

No comments have been posted about Draw squares of different colour,size and position on the screen every 1 millisecond.. Why not be the first to post a comment about Draw squares of different colour,size and position on the screen every 1 millisecond..

Post your comment

Subject:
Message:
0/1000 characters