by Jon1346 (1 Submission)
Category: Graphics
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating:
(5 Votes)
It's like that ad for "rainbow art" or whatever.
Assumes
What makes this code so cool? It's simple, and you can tweak it to ANY COLOR IMAGINABLE! All you need to do is change the rgb values!
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Static r 'r
r = r + 10: If r > 510 Then r = 0 'make it fade
For i = 0 To 200 '200 is brush tip size
Circle (X, Y), i, RGB(Abs(r - 250), 0, Abs(r - 6)) 'heart of fading- change the Red, Green, Blue to get different colors!
Next i 'make another circle
End Sub