VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Sweet Rainbow Paint

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!

Rate Sweet Rainbow Paint

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

Download this snippet    Add to My Saved Code

Sweet Rainbow Paint Comments

No comments have been posted about Sweet Rainbow Paint. Why not be the first to post a comment about Sweet Rainbow Paint.

Post your comment

Subject:
Message:
0/1000 characters