To give you an ad-free browsing experience, this website is completely funded by donations. If you use the information in this article to solve a problem, entertain yourself, or otherwise improve your life, please consider a small donation to help pay for server costs. Many thanks, and enjoy the site!

Graphics Code

Smooth color gradients using only VB6 (NO images)

This program demonstrates how to create a smooth color gradient between any two colors on any size of form. While gradients are often used for visual effects (especially since the advent of modern OSes), perhaps the most useful aspect of this project is the algorithm used to draw a gradient. Many other algorithms (like image resampling, also available on this site) use variations of the gradient algorithm – so learn it well!

Download Code (10kb)

 

BSD License
All source code in the above zip file has been released under a BSD License.

 

Related articles:

Discussion (Oldest Comments Displayed First)

Be the first to comment on “Smooth color gradients using only VB6 (NO images)”

Post a comment

Feel free to use any of these tags in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>