Search Tools Links Login

Super Gradients (Multiple Colours and custom colour positions supported)


Super Gradients is a class that allows you to draw gradients at blazing speeds with n number of colours at required positions. It is incredibly simple to use. Drop the class in your project, give one array containing all the colours and one array containing the position of the colours (positioning is optional) and simply ask it to render.
The given example implementation shows you how to draw Microsoft Word style Gold and Chrome effects. Also includes a demonstration on setting a colour's position in the gradient (use the scrollbar). The next demonstration shows you how to draw Box-style gradients and uses 16 randomly generated colours. Also has examples on simple setup style two colour gradients. All the above stated examples can be seen in the pic below with the Gold effect filled in.
If you have some experience in graphics, you can also use the given functions to implement with very less effort your own gradient styles such as circular, conical or radial, from corners or even diagonal. Please feel free to comment. Thanks.

Original Author: Sunero Technologies

API Declarations

Check Source Code.

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 123 times

Categories

Visual Basic 6

Attachments

Super_Grad58507312002.zip
Posted: 9/3/2020 3:45:00 PM
Size: 9,211 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.