Circle Color Gradient
Category:
Screen/GraphicsType:
SnippetsDifficulty:
IntermediateAuthor:
Arkadiy OlovyannikovVersion Compatibility: Visual Basic 6, Visual Basic 5
More information:
This snippet uses the GradientFillTri API function to draw a circle color gradient. As you can see by running the comparison function included, it results in a smoother gradient, with no dithering, as compared to the "standard" VB way of doing this, which would be to use the Circle method.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: