VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This is an easy form to make and would make a cool screen saver. It draws a circle in lots of color

Eric Zahler  (2 Submissions)   Graphics   VB 6.0   Unknown Difficulty   Fri 16th March 2001   Mon 8th February 2021

This is an easy form to make and would make a cool screen saver. It draws a circle in lots of colors and dots at the same time.......

API Declarations


Public Sub drawcircle()
Dim red As Integer 'declare all varibles
Dim blue As Integer
Dim green As Integer
Dim xPos As Integer
Dim yPos As Integer
red = 255 * Rnd 'randomize red color
blue = 255 * Rnd 'randomize blue color
green = 255 * Rnd 'randomize green color
xPos = ScaleWidth / 2
yPos = ScaleHeight / 2
radius = ((yPos * 0.99) + 1) * Rnd
Circle (xPos, yPos), radius, RGB(red, blue, green)
End Sub


Rate This is an easy form to make and would make a cool screen saver. It draws a circle in lots of color (1(1 Vote))
This is an easy form to make and would make a cool screen saver. It draws a circle in lots of color.bas

This is an easy form to make and would make a cool screen saver. It draws a circle in lots of color Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters