Advertisement
ASP_Volume2 Graphics #28314

FYI: A Gradient Strategy

Do you need to draw a large gradient area during window resizing? The slowness! Maybe an answer is to draw faster in poorer quality then when done sizing (i.e., Button Up), redraw in fine quality. The attached sample, if nothing else, is a good routine for drawing gradients between 2 colors. The extra code in the routines allows user-supplied quality values which when used with the example can show a dramatic decrease in the number of loop iterations required to draw in the different qualities/roughness. RePosted: Reworked calcs to account for the uneven left/right edges of thick lines.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine