VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

GradAPI

Randy Giese  (9 Submissions)   Graphics   Intermediate   Wed 3rd February 2021

Gradient_API uses the 'GradientFillTriangle' API to create two opposed Gradient filled triangles. The effect is that you get a screen sized display that is a Gradient in all directions. By using the API, I can achieve very fast graphics. I set it up to use a Timer (tmrGrad_API) to continually refresh the display every second. I included a popup Speed control, accessible by right-clicking the form, so that the user may control the display speed. I set the minimum time to 10 milliseconds, which is too fast for me (it causes an annoying flashing). On the other hand, the maximum of 10 seconds is very slow (too slow for me). The colors of the 4 corners, and the direction that the triangles face, are chosen at random, so the display will be constantly changing.

Inputs
None.

Assumes
None.

Returns
Nice looking Gradient graphics.

Side Effects
None.

Rate GradAPI (8(8 Vote))

Download GradAPI

GradAPI Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters